Scene change detection method and device, monitoring system and storage medium
By filtering and optimizing the detection of video data channels, using detection boxes and dynamic detection coordinates to calculate the percentage of scene change detection, the problem of high missed detection rate in the monitoring system is solved, and the detection accuracy is improved.
Patent Information
- Application Number
- CN202411127708.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-15
AI Technical Summary
In the monitoring system, the missed detection rate of scene change detection of the camera equipment is high, especially when processing resources are limited. Polling detection results in the inability to detect scene changes in time, resulting in a high missed detection rate.
By determining the number of video data channels triggered at the target moment, filter out the data channels that need to be detected in scene change, use the detection box settings and dynamic detection coordinates to calculate the percentage of scene detection, determine the data channels that need to be detected based on the threshold, and reduce the data channels that need to be detected. quantity to improve detection accuracy.
It effectively reduces the missed detection rate of scene change detection and improves the accuracy of scene change detection of monitoring systems, especially when processing resources are limited.
Smart Images

Figure CN119007083A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video image processing, and in particular to a scene change detection method, device, monitoring system and storage medium. Background Art
[0002] In the monitoring system, video acquisition equipment is an indispensable device for realizing scene monitoring. Among them, video cameras are the most widely used. During the operation of the monitoring system, the scene of the video camera needs to be monitored in real time. The scene change of the video camera usually means that the video camera itself has moved or rotated. The monitoring system needs to identify or detect the non-system controlled movement or rotation of the video camera, and judge whether the video camera has moved or rotated abnormally based on the identification or detection results. Usually, the video frames captured by the video camera are detected to judge whether the scene of the video camera has changed.
[0003] For a monitoring system with multiple video data channels, it is necessary to detect the video frames of the multiple video data channels to determine whether the scene of the camera device corresponding to the video data channel has changed. When the processing resources of the monitoring system are limited, only the video data of the multiple video data channels can be polled for detection during scene change detection. Since scene changes usually last for a short time, the polling detection process will result in a high missed detection rate of scene changes of the camera device. Summary of the invention
[0004] The embodiments of the present application provide a scene change detection method, device, monitoring system and storage medium to solve the problem of high missed detection rate of scene changes of camera equipment in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a scene change detection method, the method comprising:
[0006] Determine at least one first target video data channel that triggers dynamic detection at the target time, and determine the number of the first target video data channels; the target time is the triggering time of the dynamic detection of the video data;
[0007] Determining a second target video data channel in the first target video data channel according to the number of channels;
[0008] Scene change detection is performed according to the determination result of the second target video data channel.
[0009] In some embodiments, determining the second target video data channel in the first target video data channel according to the number of channels includes:
[0010] Determining, according to the number of channels, detection frame setting information of the video frame of the first target video data channel;
[0011] A second target video data channel in the first target video data channel is determined according to the detection frame setting information.
[0012] In some of the embodiments, after determining at least one first target video data channel that triggers the dynamic detection at the target time, and determining the number of channels of the first target video data channel, the method further includes:
[0013] The dynamic detection coordinates of the target video frame are obtained; the target video frame is a video frame corresponding to the video data of the first target video data channel at the target time, and the dynamic detection coordinates are used to identify the area where the target object changes in the video frame.
[0014] In some embodiments, determining the second target video data channel in the first target video data channel according to the detection frame setting information includes:
[0015] Determining a judgment threshold according to the number of channels;
[0016] Determining a scene detection percentage of a video frame of the first target video data channel according to the detection frame setting information and the dynamic detection coordinates;
[0017] The second target video data channel is determined according to the scene detection percentage and the determination judgment threshold.
[0018] In some embodiments, determining the scene detection percentage of the video frame of the first target video data channel according to the detection frame setting information and the dynamic detection coordinates includes:
[0019] Determining positions of a plurality of detection frames to be set according to the detection frame setting information and a size of a video frame of the first target video data channel;
[0020] Determining the number of detection frames in which the target object has changed according to the positions of the multiple detection frames and the dynamic detection coordinates;
[0021] The scene detection percentage of the video frame of the first target video data channel is determined according to the number of detection frames in which the target object has changed and the total number of detection frames.
[0022] In some embodiments, determining the second target video data channel according to the scene detection percentage and the determination of the judgment threshold comprises:
[0023] When the scene detection percentage of the video frame of the current first target video data channel is greater than the judgment threshold, the current first target video data channel is determined to be the second target video data channel.
[0024] In some of the embodiments, the detection frame setting information includes the number of set detection frames and the size of the set detection frames, the number of detection frames is negatively correlated with the number of channels, the size of the detection frames is positively correlated with the number of channels, and the judgment threshold is positively correlated with the number of channels.
[0025] In some of the embodiments, performing scene change detection according to the determination result of the second target video data channel includes:
[0026] When the second target video data channel is not detected in the first target video data channel, outputting a scene change detection result that the scene has not changed;
[0027] When at least one second target video data channel is detected in the first target video data channel, scene change detection is performed on the video data corresponding to the at least one second target video data channel.
[0028] In some embodiments, when at least one second target video data channel is detected in the first target video data channel, performing scene change detection on video data corresponding to the at least one second target video data channel includes:
[0029] Determining time information of data required for scene change detection according to the number of video frames required for scene change detection and the target time;
[0030] Acquire detection data corresponding to the video data of the second target video data channel according to the time information;
[0031] Perform scene change detection on the detection data.
[0032] In a second aspect, an embodiment of the present application provides a scene change detection device, the device comprising:
[0033] A first determination module is used to determine at least one first target video data channel that triggers dynamic detection at a target moment, and to determine the number of channels of the first target video data channel; the target moment is a triggering moment of dynamic detection of video data;
[0034] A second determining module, configured to determine a second target video data channel in the first target video data channel according to the number of channels;
[0035] The detection module is used to perform scene change detection according to the determination result of the second target video data channel.
[0036] In a third aspect, an embodiment of the present application provides a monitoring system, the system comprising multiple video acquisition devices and a processor, the multiple video acquisition devices are connected to the processor, the multiple video acquisition devices are used to acquire multi-channel video data, and the processor is used to execute the scene change detection method described in the first aspect.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the scene change detection method described in the first aspect are implemented.
[0038] Compared with the prior art, a scene change detection method, device, monitoring system and storage medium provided in the embodiments of the present application are provided, by determining at least one first target video data channel that triggers dynamic detection at the target moment, and determining the number of channels of the first target video data channel; the target moment is the triggering moment of the dynamic detection of the video data; according to the number of channels, the second target video data channel in the first target video data channel is determined; according to the determination result of the second target video data channel, scene change detection is performed. This embodiment selects the second target video data channel that needs to be detected for scene change from the multiple first target video data channels that trigger dynamic detection at the same time, and performs scene change detection on the multiple second target video data channels. When the processing resources of the monitoring system are limited, the number of data channels that need to be detected for scene change is reduced, and the accuracy of scene detection is improved. It solves the problem that when the processing resources of the monitoring system are limited in the prior art, only the video data of multiple video data channels can be polled for detection when scene change detection is performed. Since the scene change usually lasts for a short time, the scene change of the video acquisition device is missed during the polling detection process.
[0039] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0041] Figure 1 It is a structural schematic diagram of a monitoring system of an embodiment of the application;
[0042] Figure 2It is a structural schematic diagram of a video acquisition device according to an embodiment of the present application;
[0043] Figure 3 is a flow chart of a scene change detection method according to an embodiment of the present application;
[0044] Figure 4 is a flow chart of another scene change detection method according to an embodiment of the present application;
[0045] Figure 5 It is a structural block diagram of a scene change detection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0047] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0048] Application of the scene change detection method in the embodiment of the present application Figure 1 The monitoring system shown in Figure 1 As shown, the monitoring system includes a processor and multiple video acquisition devices, and the multiple video acquisition devices are respectively connected to the processor for communication.
[0049] Multiple video acquisition devices are used to collect video data of N channels and start dynamic detection of all data channels. When the picture content of the video frame of the collected video data changes, the video acquisition device triggers dynamic detection and sends dynamic detection trigger information to the processor. After the video acquisition device triggers dynamic detection, it performs dynamic detection on the collected video data and sends the dynamic detection result to the processor. Among them, the dynamic detection trigger information includes the time when the current video acquisition device triggers dynamic detection, and the dynamic detection result includes the area where the target object of the video frame changes, the type of change of the target object of the video frame, etc. The change in the picture content here can be that a new target object appears in the current video frame compared with the previous video frame, or that the position of the target object in the current video frame compared with the previous video frame has changed, which is not specifically limited here. The target object here can be a dynamic object such as a person or a vehicle.
[0050] The processor receives data and information sent by all video acquisition devices, such as video data, dynamic detection trigger information, dynamic detection results, etc. The processor executes the scene change detection method in this embodiment according to the received data and information, that is, the processor determines at least one first target video data channel that triggers dynamic detection at the target moment, and determines the number of channels of the first target video data channel; the target moment is the trigger moment of dynamic detection of video data, and the processor determines the second target video data channel in the first target video data channel according to the number of channels, and the second target video data channel is the data channel that needs to perform scene change detection, and the processor performs scene change detection according to the determination result of the second target video data channel. Among them, multiple video acquisition devices such as Figure 1 Video acquisition device A1, video acquisition device A2, video acquisition device A3, video acquisition device A4... video acquisition device A M-1 、Video acquisition equipment A M, where M is less than or equal to N, and the video data collected by M video acquisition devices form N video channel data, that is, each video acquisition device can collect video data of multiple channels, or can collect video data of a single channel, which is not specifically limited here. It should be noted that at least one first target video data channel triggers dynamic detection at the target moment, that is, the video frame picture content of the video data of at least one first target video data channel has changed, but the video acquisition device corresponding to the first target video data channel does not necessarily have a scene change, that is, the change in the video frame picture content may be caused by the scene change of the video acquisition device, or it may be caused by other reasons. If the video acquisition device scene change detection is performed on all video data with changed video frame picture content, it will lead to a waste of processor computing resources. When the processor resources are limited, if only one data channel can be detected for scene change at the same time, if the scene change detection is performed in a polling manner, it will result in the inability to detect the scene change of the data channel when the scene change is triggered by the data channel that is not being detected, resulting in a high missed detection rate.
[0051] As a non-limiting example, if the processor receives the dynamic detection trigger information sent by the video acquisition device corresponding to the video data channel B1, the dynamic detection trigger information sent by the video acquisition device corresponding to the video data channel B1 indicates that the video data channel B1 triggers the dynamic detection at the time t1, and the time t1 is the target time. The processor receives the data and information sent by all video acquisition devices, and the processor determines all the video data channels that trigger the dynamic detection at the target time, i.e., the time t1, from all the received dynamic detection trigger information. If it is determined that the video data channels B2, B3, and B4 also trigger the dynamic detection at the time t1, then at the time t1, there are 4 video data channels, i.e., the video data channels B1, B2, B3, and B4, that trigger the dynamic detection at the same time, thereby determining the data channels that trigger the dynamic detection at the same time at the time t1 and the number of data channels that trigger the dynamic detection at the same time at the time t1.
[0052] This embodiment determines at least one first target video data channel that triggers dynamic detection at the target moment, and determines the number of channels of the first target video data channel; the target moment is the triggering moment of the dynamic detection of the video data; according to the number of channels, the second target video data channel in the first target video data channel is determined; according to the determination result of the second target video data channel, scene change detection is performed. In this embodiment, the second target video data channel that needs to be detected for scene change is screened out from the multiple first target video data channels that trigger dynamic detection at the same time, and the scene change detection is performed on the multiple second target video data channels. When the processing resources of the monitoring system are limited, the number of data channels that need to be detected for scene change is reduced, and the accuracy of scene detection is improved. This solves the problem that in the prior art, when the processing resources of the monitoring system are limited, only the video data of multiple video data channels can be polled for detection when scene change detection is performed. Since the scene change usually lasts for a short time, the high missed detection rate of the scene change of the video acquisition device is caused during the polling detection process.
[0053] In some of the embodiments, Figure 1 and Figure 2 As shown, the video acquisition device includes a video acquisition unit 121 and a processing unit 122, and the video acquisition unit 121 and the processing unit 122 are in communication connection. The video acquisition unit 121 is used to acquire video data and transmit the acquired data to the processing unit 122, and the processing unit 122 is used to process the video acquisition unit 121, such as performing dynamic detection. When the processing unit 122 turns on or triggers dynamic detection, it sends dynamic detection trigger information to the processor, performs dynamic detection on the video data acquired by the video acquisition unit 121, generates corresponding dynamic detection results, and sends the dynamic detection results to the processor. The dynamic detection results include the area where the target object of the video frame changes, the type of change of the target object of the video frame, etc.
[0054] This embodiment provides a scene change detection method. Figure 3 is a flow chart of a scene change detection method according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:
[0055] Step S310, determining at least one first target video data channel that triggers dynamic detection at the target time, and determining the number of first target video data channels; the target time is the triggering time of dynamic detection of video data.
[0056] In this step, the processor determines at least one first target video data channel that triggers dynamic detection at the target moment, and determines the number of channels of the first target video data channel; the target moment is the triggering moment of dynamic detection of video data. The processor determines at least one first target video data channel that triggers dynamic detection at the target moment, and determines the number of channels of the first target video data channel based on the data and information sent by the video acquisition device. The first target video data channel here is a video data channel that triggers dynamic detection at the same target moment, and the number of channels is the number of first target video data channels. As a non-limiting example, if the processor receives dynamic detection trigger information sent by the video acquisition device corresponding to the video data channel B1, the dynamic detection trigger information sent by the video acquisition device corresponding to the video data channel B1 indicates that the video data channel B1 triggers dynamic detection at time t1, and the time t1 is the target moment. The processor receives data and information sent by all video acquisition devices. The processor determines all video data channels that have triggered dynamic detection at the target moment, i.e., moment t1, from all received dynamic detection trigger information. For example, if it is determined that video data channel B2, video data channel B3, and video data channel B4 also trigger dynamic detection at moment t1, then at moment t1, there are a total of 4 video data channels, i.e., video data channel B1, video data channel B2, video data channel B3, and video data channel B4, which simultaneously trigger dynamic detection. Thus, the data channels that simultaneously trigger dynamic detection at moment t1 and the number of data channels that simultaneously trigger dynamic detection at moment t1 are determined, i.e., it is determined that at least one first target video data channel that simultaneously triggers dynamic detection at target moment t1 is video data channel B1, video data channel B2, video data channel B3, and video data channel B4, and the number of channels of the first target video data channel is determined to be 4.
[0057] Step S320: determining a second target video data channel in the first target video data channel according to the number of channels.
[0058] In this step, the processor determines the second target video data channel in the first target video data channel according to the number of channels. The processor screens the first target video data channel according to the number of channels and selects the video data channel with a higher probability of scene change in the first target video data channel, that is, the second target video data channel.
[0059] Step S330: Perform scene change detection according to the determination result of the second target video data channel.
[0060] In this step, the processor performs scene change detection according to the determination result of the second target video data channel. When the second target video data channel is not detected in the first target video data channel, the scene change detection result is output as the scene has not changed; when at least one second target video data channel is detected in the first target video data channel, scene change detection is performed on the video data corresponding to the at least one second target video data channel.
[0061] This embodiment determines at least one first target video data channel that triggers dynamic detection at the target moment, and determines the number of channels of the first target video data channel; the target moment is the triggering moment of the dynamic detection of the video data; according to the number of channels, the second target video data channel in the first target video data channel is determined; according to the determination result of the second target video data channel, scene change detection is performed. This embodiment selects the second target video data channel that needs to be detected for scene change from the multiple first target video data channels that trigger dynamic detection at the same time, and performs scene change detection on the multiple second target video data channels. When the processing resources of the monitoring system are limited, the number of data channels that need to be detected for scene change is reduced, and the accuracy of scene detection is improved. This solves the problem that in the prior art, when the processing resources of the monitoring system are limited, only the video data of multiple video data channels can be polled for detection when scene change detection is performed. Since the scene change usually lasts for a short time, the high missed detection rate of the scene change of the video acquisition device is caused during the polling detection process.
[0062] In some of the embodiments, determining a second target video data channel in a first target video data channel according to the number of channels includes: determining detection frame setting information of a video frame of the first target video data channel according to the number of channels; and determining the second target video data channel in the first target video data channel according to the detection frame setting information.
[0063] In this embodiment, the processor determines the detection frame setting information of the video frame of the first target video data channel according to the number of channels. The processor can determine the detection frame setting information of the video frame of the first target video data channel according to the number of channels. The detection frame setting information includes the number of set detection frames, the size of the detection frames, etc. After determining the detection frame setting information, the processor divides the screen of the video frame of the first target video data channel into detection frames of corresponding numbers and sizes. The processor determines the second target video data channel in the first target video data channel according to the determined detection frame setting information. The processor can determine the second target video data channel in the first target video data channel according to the content in the determined detection frame. Further, the detection frame setting information of the video frame of the first target video data channel is determined according to the ratio of the number of channels of the first target video data channel to the total number of channels. In this embodiment, detection frame setting information is determined according to the number of channels, and the second target video data channel in the first target video data channel is determined according to the detection frame setting information, and the second target video data channel that needs to perform scene change detection is screened out from multiple first target video data channels that simultaneously trigger dynamic detection, and scene change detection is performed on multiple second target video data channels. When the processing resources of the monitoring system are limited, the number of data channels that need to perform scene change detection is reduced, thereby improving the accuracy of scene detection.
[0064] In some of the embodiments, the number of detection frames is negatively correlated with the number of channels. That is, the more channels there are, the fewer detection frames there are, and the fewer channels there are, the larger the number of detection frames there are. In this embodiment, the number of detection frames is negatively correlated with the number of channels. When the number of channels is large, a smaller number of detection frames is set to improve the computational efficiency of the system.
[0065] In some of the embodiments, after determining at least one first target video data channel that simultaneously triggers dynamic detection at a target moment, and determining the number of channels of the first target video data channel, the method further includes: obtaining dynamic detection coordinates of a target video frame; the target video frame is a video frame corresponding to the video data of the first target video data channel at the target moment, and the dynamic detection coordinates are used to identify an area in the video frame where a target object changes.
[0066] In this embodiment, the processor obtains the dynamic detection coordinates of the target video frame; the target video frame is the video frame corresponding to the video data of the first target video data channel at the target time, and the dynamic detection coordinates are used to identify the area where the target object changes in the video frame.
[0067] In some of the embodiments, determining a second target video data channel in a first target video data channel according to detection frame setting information includes: determining a judgment threshold according to the number of channels; determining a scene detection percentage of a video frame of the first target video data channel according to the detection frame setting information and dynamic detection coordinates; and determining the second target video data channel according to the scene detection percentage and determining the judgment threshold.
[0068] In this embodiment, the processor determines the judgment threshold value according to the number of channels, and the judgment threshold value is positively correlated with the number of channels, that is, the more channels there are, the larger the judgment threshold value is, and the fewer channels there are, the smaller the judgment threshold value is. The processor determines the scene detection percentage of the video frame of the first target video data channel according to the detection frame setting information and the dynamic detection coordinates, such as determining the scene detection percentage of the video frame of the first target video data channel according to whether the dynamic detection coordinates fall into the detection frame. The processor determines the second target video data channel according to the scene detection percentage and the determination of the judgment threshold value, such as when the scene detection percentage is greater than the judgment threshold value, the processor determines that the first target video data channel corresponding to the scene detection percentage is the second target video data channel. In this embodiment, when the number of channels is large, a smaller number of detection frames are set, and the size of the detection frame is large at this time. By setting a higher judgment threshold value, the accuracy of screening the second target video data channel is improved.
[0069] In some of the embodiments, the scene detection percentage of the video frame of the first target video data channel is determined based on the detection frame setting information and the dynamic detection coordinates, including: determining the positions of multiple detection frames that are set based on the detection frame setting information and the size of the video frame of the first target video data channel; determining the number of detection frames in which the target object has changed based on the positions of the multiple detection frames and the dynamic detection coordinates; and determining the scene detection percentage of the video frame of the first target video data channel based on the number of detection frames in which the target object has changed and the total number of detection frames.
[0070] In this embodiment, the processor determines the positions of the multiple detection frames to be set according to the detection frame setting information and the size of the video frame of the first target video data channel. As a non-limiting example, if the detection frame setting information is to set M1×N1 detection frames, the size of the video frame of the first target video data channel is M2×N2, and the size of each detection frame can be (M2 / M1)×(N2 / N1), where M1 and N1 are positive integers, M2 is a multiple of M1, and N2 is a multiple of N1. According to the number of detection frames set, the size of the detection frames set, and the size of the video frame of the first target video data channel, the positions of the multiple detection frames can be determined. After determining the positions of the multiple detection frames, according to the dynamic detection coordinates, it is determined whether the video frame images of the multiple detection frames have changed, that is, whether the targets in the multiple detection frames have changed or changed, and the number of detection frames whose images have changed is counted, that is, the number of detection frames whose targets have changed is determined. According to the number of detection frames whose targets have changed and the total number of detection frames, the scene detection percentage of the video frame of the first target video data channel is determined.
[0071] In some of the embodiments, the second target video data channel is determined based on the scene detection percentage and the judgment threshold, including: when the scene detection percentage of the video frame of the current first target video data channel is greater than the judgment threshold, determining the current first target video data channel as the second target video data channel.
[0072] In this embodiment, the processor determines whether the scene detection percentage of the video frame of the current first target video data channel is greater than the judgment threshold. When the scene detection percentage of the video frame of the current first target video data channel is greater than the judgment threshold, the processor determines that the current first target video data channel is the second target video data channel.
[0073] In some of the embodiments, the detection frame setting information includes the number of set detection frames and the size of the set detection frames, the number of detection frames is negatively correlated with the number of channels, the size of the detection frames is positively correlated with the number of channels, and the judgment threshold is positively correlated with the number of channels.
[0074] In this embodiment, when the number of channels is large, a smaller number of detection frames are set. In this case, the size of the detection frames is larger. By setting a higher judgment threshold, the accuracy of screening the second target video data channel is improved.
[0075] In some of the embodiments, scene change detection is performed based on the determination result of the second target video data channel, including: when the second target video data channel is not detected in the first target video data channel, outputting the scene change detection result as that the scene has not changed; when at least one second target video data channel is detected in the first target video data channel, performing scene change detection on the video data corresponding to the at least one second target video data channel, thereby improving the accuracy of scene detection.
[0076] In this embodiment, the processor screens the first target video data channel by the method in the above embodiment, and screens out the second target video data channel that needs to be detected for scene change. When the second target video data channel is not screened out, there is no need to perform scene change detection or it is determined that the video acquisition device has not undergone a scene change, and the processor outputs a scene change detection result that the scene of the video acquisition device has not changed. When at least one second target video data channel is detected in the first target video data channel, the processor performs scene change detection on the video data corresponding to the at least one second target video data channel, and outputs the scene change result. In this embodiment, the second target video data channel that needs to be detected for scene change is screened out from multiple first target video data channels that simultaneously trigger dynamic detection, and scene change detection is performed on multiple second target video data channels. When the processing resources of the monitoring system are limited, the number of data channels that need to be detected for scene change is reduced, thereby improving the accuracy of scene detection.
[0077] In some of the embodiments, when at least one second target video data channel is detected in a first target video data channel, scene change detection is performed on video data corresponding to the at least one second target video data channel, including: determining time information of data required for scene change detection based on the number of video frames required for scene change detection and the target moment; acquiring detection data corresponding to the video data of the second target video data channel based on the time information; and performing scene change detection on the detection data.
[0078] In this embodiment, the processor determines the time information of the data required for scene change detection based on the number of video frames required for scene change detection and the target time, and the time information includes the time period of the video data of the second target video data channel required for scene change detection. According to the time period, the detection data corresponding to the video data of the second target video data channel is obtained from the corresponding storage unit, and scene change detection is performed on the detection data.
[0079] This embodiment also provides a scene change detection method. Figure 4 is a flow chart of another scene change detection method according to an embodiment of the present application. Figure 4 As shown, the process includes the following steps:
[0080] Step S410, start full-channel dynamic detection.
[0081] In this step, scene change detection is turned on, frame sending detection is not performed, and the processor turns on full-channel dynamic detection, that is, turns on dynamic detection of all video data channels.
[0082] Step S420, when the dynamic detection is triggered, determine the number of channels that trigger the dynamic detection of all channels at the same time.
[0083] In this step, when the processor receives the dynamic detection trigger information of a certain video data channel, it determines the number of channels that trigger dynamic detection at the same time when the dynamic detection is triggered. The channels that trigger dynamic detection at the same time when the dynamic detection is triggered are the first target video data. There are three situations. If more than 2X / 3 channels are triggered at the same time, it is considered that there are many dynamic detection channels triggered at the same time, which is recorded as level low , if it is less than X / 2, it is judged that there are few dynamic detection channels triggered simultaneously, recorded as level high , others are default, recorded as level default Among them, X represents the number of channels, and num represents the number of channels that trigger dynamic detection at the same time.
[0084]
[0085] Step S430, determining the division ratio of the detection frame.
[0086] In this step, the ratio of the screen division in step S440 is determined according to the result of step S420. If it is determined in step S420 that there are many dynamic detection channels triggered simultaneously, the number of the screen boxes, i.e., the number of detection boxes, in step S440 is reduced to 12*14. Otherwise, the screen is divided into 26*32 detection boxes. By default, the number of the screen boxes in step S440 is divided into 18*22. Split is the number of detection boxes.
[0087]
[0088] Step S440: determining whether scene change detection is required based on the confidence level of the dynamic detection.
[0089] In this step, it is determined whether the scene change detection needs to be sent according to the confidence of the dynamic detection. The judgment basis is as follows: whether the channel needs to perform scene change detection according to whether the proportion of the dynamic detection trigger area in the entire screen reaches half of the threshold of scene change detection. The channel that needs to perform scene change detection here is the second target video data channel. Exemplarily, assuming that the threshold of scene change detection is 50% in the default case, it is considered successful if the dynamic detection trigger area occupies 25% of the entire screen. In the default case, the entire screen is divided into 18*22 boxes, namely the detection box, and then the value of the 18*22 detection box is filled according to whether the video screen in each box has changed. If there is a change, it is set to 1, and if there is no change, it is set to 0. Then the number of all 1 areas is added and divided by the number of all areas to obtain a percentage. If this percentage is greater than or equal to the judgment threshold 25%, it is considered that the confidence judgment is credible. When the confidence judgment is credible, it is determined that scene change detection needs to be performed. After the dynamic detection is triggered, the video capture device will transmit the coordinate value of the video screen change. The value of the corresponding detection frame can be filled according to whether the coordinate value falls into the corresponding detection frame. For example, the percentage and judgment threshold are determined by the following formula, where Area MD is the number of detection boxes with a detection box value of 1 in the video frame, Split is the number of detection boxes, scene th is the threshold for scene change detection, ratio is the percentage, ratio th is the judgment threshold. th The value of scene th The value is 25%. When there are few dynamic detection channels triggered at the same time, scene th The value is 75%, that is, scene th It is positively correlated with the number of dynamic detection channels triggered simultaneously.
[0090]
[0091] ratio th =50%*scene th
[0092] When it is determined that scene change detection is required, step S450 is executed; when it is determined that scene change detection is not required, step S470 is executed.
[0093] Step S450, obtaining the data to be detected.
[0094] In this step, when step S440 determines that scene change detection is required, N1 frames of data to be detected or analyzed are obtained. N1 represents the minimum number of data frames required for the scene change detection algorithm to construct the background image, which is generally 3 to 5 frames. The data to be detected or analyzed consists of data from N1 / Fps before the dynamic detection trigger moment to the trigger moment. If it is less than the preset time t2, the preset time t2 is taken, and N1 frames of video frame data are taken at intervals. Fps is the frame rate. The preset time t2 can be 30 seconds or 1 minute, etc., which is not specifically limited here. For example, the start time and end time of the data to be detected or analyzed are determined by the following formula, where times tart time is the start time of the data to be detected or analyzed. end The deadline for the data to be tested or analyzed, time cur The trigger moment for dynamic detection is the target moment in the aforementioned embodiment.
[0095] time start =time cur -2N1 / Fps
[0096] time end =max(time start +t2,time cur )
[0097] The video data is stored in the hard disk or in the video cache queue. When the video data is stored in the hard disk, the time determined in step S450 is start and time end The data to be detected or analyzed at the corresponding time is obtained from the hard disk or the video cache queue.
[0098] Step S460: scene change detection.
[0099] In this step, the acquired data to be detected is subjected to scene change detection, a background image is constructed based on the data to be detected, and scene change detection is performed. The scene change detection here can be to compare the video frame at the target moment of the data to be detected with the previous video frame, and judge whether the scene of the video acquisition device corresponding to the data to be detected has changed according to the pixel comparison result, or to compare the video frame at the target moment of the data to be detected with the background image, and judge whether the scene of the video acquisition device corresponding to the data to be detected has changed according to the pixel comparison result.
[0100] Step S470, output the detection result.
[0101] In this step, when step S440 determines that scene change detection is not required, the output detection result is that the scene has not changed. When step S440 determines that scene change detection is required, the output detection result is the detection result of step S460, which includes the identification of the video acquisition device where the scene change occurs and the type of scene change of the video acquisition device where the scene change occurs, and the type of scene change includes rotation, movement, occlusion, etc. of the video acquisition device.
[0102] In this embodiment, the threshold of scene change is synchronized with the dynamic detection result judgment, and scene change detection is performed only when the data to be analyzed is determined, and dynamic detection of all channels is detected, so as to achieve the purpose of using the equipment resources of a single channel to achieve the purpose of full-channel scene change detection. At the same time, the equipment performance can be saved when idle, and false alarms and missed alarms can be reduced. This solves the problem in the prior art that when the processing resources of the monitoring system are limited, only the video data of multiple video data channels can be polled for scene change detection. Since scene changes usually last for a short time, the scene change missed detection rate of the video acquisition device is high during the polling detection process.
[0103] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0104] The present application also provides a scene change detection device in the embodiments, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0105] Figure 5 is a structural block diagram of a scene change detection device according to an embodiment of the present application. Figure 5 As shown, the device comprises:
[0106] A first determination module 510 is used to determine at least one first target video data channel that triggers dynamic detection at a target moment, and to determine the number of channels of the first target video data channel; the target moment is a triggering moment of dynamic detection of video data;
[0107] A second determination module 520, configured to determine a second target video data channel in the first target video data channel according to the number of channels;
[0108] The detection module 530 is used to perform scene change detection according to the determination result of the second target video data channel.
[0109] In some of the embodiments, the second determination module 520 is further used to determine the detection frame setting information of the video frame of the first target video data channel according to the number of channels; and determine the second target video data channel in the first target video data channel according to the detection frame setting information.
[0110] In some of the embodiments, the first determination module 510 is also used to obtain dynamic detection coordinates of a target video frame; the target video frame is a video frame corresponding to the video data of the first target video data channel at a target moment, and the dynamic detection coordinates are used to identify an area in the video frame where a target object changes.
[0111] In some of the embodiments, the second determination module 520 is further used to determine a judgment threshold based on the number of channels; determine the scene detection percentage of the video frame of the first target video data channel based on the detection frame setting information and the dynamic detection coordinates; determine the second target video data channel based on the scene detection percentage and the determined judgment threshold; and the judgment threshold is positively correlated with the number of channels.
[0112] In some of the embodiments, the detection module 530 is also used to, when no second target video data channel is detected in the first target video data channel, output a scene change detection result that the scene has not changed; and when at least one second target video data channel is detected in the first target video data channel, perform scene change detection on the video data corresponding to the at least one second target video data channel.
[0113] In some of the embodiments, the detection module 530 is also used to determine the time information of the data required for scene change detection based on the number of video frames required for scene change detection and the target moment; obtain the detection data corresponding to the video data of the second target video data channel based on the time information; and perform scene change detection on the detection data.
[0114] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0115] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0116] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0117] Optionally, in the embodiment of the present application, the processor may be configured to perform the following steps through a computer program:
[0118] S1, determining at least one first target video data channel that triggers dynamic detection at a target moment, and determining the number of the first target video data channels; the target moment is the triggering moment of dynamic detection of video data;
[0119] S2, determining a second target video data channel in the first target video data channel according to the number of channels;
[0120] S3, performing scene change detection according to the determination result of the second target video data channel.
[0121] It should be noted that the specific examples in the embodiments of the present application can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in the embodiments of the present application.
[0122] In addition, in combination with a scene change detection method provided in the above embodiment, a storage medium may be provided in the embodiment of the present application to implement the scene change detection method. The storage medium stores a computer program; when the computer program is executed by a processor, any scene change detection method in the above embodiment is implemented.
[0123] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0124] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0125] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0126] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A scene change detection method, characterized in that: The method comprises: Determine at least one first target video data channel that triggers dynamic detection at a target time, and determine the number of channels of the first target video data channel; the target time is the triggering time of dynamic detection of video data; Determining a second target video data channel in the first target video data channel according to the number of channels; Scene change detection is performed according to the determination result of the second target video data channel.
2. The scene change detection method according to claim 1, characterized in that: The step of determining, according to the number of channels, a second target video data channel in the first target video data channel comprises: Determining, according to the number of channels, detection frame setting information of the video frame of the first target video data channel; A second target video data channel in the first target video data channel is determined according to the detection frame setting information.
3. The scene change detection method according to claim 2, characterized in that: After determining at least one first target video data channel that triggers the dynamic detection at the target time, and determining the number of channels of the first target video data channel, the method further includes: The dynamic detection coordinates of the target video frame are obtained; the target video frame is a video frame corresponding to the video data of the first target video data channel at the target time, and the dynamic detection coordinates are used to identify the area where the target object changes in the video frame.
4. The scene change detection method according to claim 3, characterized in that: The determining, according to the detection frame setting information, a second target video data channel in the first target video data channel comprises: Determining a judgment threshold according to the number of channels; Determining a scene detection percentage of a video frame of the first target video data channel according to the detection frame setting information and the dynamic detection coordinates; The second target video data channel is determined according to the scene detection percentage and the determination judgment threshold.
5. The scene change detection method according to claim 4, characterized in that: The determining, according to the detection frame setting information and the dynamic detection coordinates, a scene detection percentage of the video frame of the first target video data channel includes: Determining positions of a plurality of detection frames to be set according to the detection frame setting information and a size of a video frame of the first target video data channel; Determining the number of detection frames in which the target object has changed according to the positions of the multiple detection frames and the dynamic detection coordinates; The scene detection percentage of the video frame of the first target video data channel is determined according to the number of detection frames in which the target object has changed and the total number of detection frames.
6. The scene change detection method according to claim 5, characterized in that: The step of determining the second target video data channel according to the scene detection percentage and the determination of the judgment threshold comprises: When the scene detection percentage of the video frame of the current first target video data channel is greater than the judgment threshold, the current first target video data channel is determined to be the second target video data channel.
7. The scene change detection method according to claim 4, characterized in that: The detection frame setting information includes the number of set detection frames and the size of the set detection frames, the number of detection frames is negatively correlated with the number of channels, the size of the detection frames is positively correlated with the number of channels, and the judgment threshold is positively correlated with the number of channels.
8. The scene change detection method according to claim 1, characterized in that: The performing scene change detection according to the determination result of the second target video data channel includes: When the second target video data channel is not detected in the first target video data channel, outputting a scene change detection result that the scene has not changed; When at least one second target video data channel is detected in the first target video data channel, scene change detection is performed on the video data corresponding to the at least one second target video data channel.
9. The scene change detection method according to claim 8, characterized in that: When at least one second target video data channel is detected in the first target video data channel, performing scene change detection on video data corresponding to the at least one second target video data channel includes: Determining time information of data required for scene change detection according to the number of video frames required for scene change detection and the target time; Acquire detection data corresponding to the video data of the second target video data channel according to the time information; Perform scene change detection on the detection data.
10. A scene change detection device, characterized in that: The device comprises: A first determination module is used to determine at least one first target video data channel that triggers dynamic detection at a target moment, and to determine the number of channels of the first target video data channel; the target moment is a triggering moment of dynamic detection of video data; A second determining module, configured to determine a second target video data channel in the first target video data channel according to the number of channels; The detection module is used to perform scene change detection according to the determination result of the second target video data channel.
Citation Information
Patent Citations
Scene switching method and device and storage medium
CN111327875A
Scene change detection method and device, computer equipment and storage medium
CN116363495A
Target detection method and device
CN116824450A
Target identification method and device for multi-camera spliced high-resolution video
CN118247495A
Stop motion animation generation method, electronic device, cloud server, and system
WO2024140123A1
