A method, device and apparatus for retrieving dynamic inspection data

By determining the intersecting I-frame index data and other I-frame index data in the motion detection retrieval, new motion detection area data is generated, which solves the problem of frequent picture jumps after motion detection retrieval and ensures image coherence and user experience.

CN111382313BActive Publication Date: 2024-08-27ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811643320.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-29
Publication Date
2024-08-27
Estimated Expiration
2038-12-29

AI Technical Summary

Technical Problem

In the existing technology, the problem of frequent picture jumps occurs when playing after motion detection retrieval. The reason is that there is a gap of unintersected I-frame index data between two consecutively played index data, resulting in discontinuous image information.

Method used

By determining the number N of comparisons between the first motion examination area to be retrieved and the preset I-frame index data in the motion examination area data, the I-frame index data that intersects with the motion examination area data is obtained, and the I-frame index data before and after it is obtained. The third motion detection area is determined from the I-frame index data and new motion detection area data is generated to ensure image coherence.

Benefits of technology

It solves the problem of frequent jumps in the picture. By selecting the third motion detection area generated by the intersection with the first I-frame index data, it ensures the continuity of the image during playback and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111382313B
    Figure CN111382313B
Patent Text Reader

Abstract

The present invention discloses a method, equipment and device for retrieving motion detection data, including: determining a first motion detection area to be retrieved and a preset number N of I frame index data comparisons in the motion detection area data; obtaining first I frame index data that intersects with the motion detection area data in the I frame index data to be retrieved; for each first I frame index data, after determining the third motion detection area, obtaining second I frame index data in N I frame index data before and / or after the first I frame index data; using the first I frame index data and the second I frame index data as the retrieved motion detection data, or using the second I frame index data as the retrieved motion detection data. By adopting the present invention, when playing the retrieved image data, there will be no frequent picture jumps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method, equipment and device for retrieving dynamic inspection data. Background Art

[0002] Motion detection technology, also known as motion detection, is often used for unattended surveillance and automatic alarm. The images collected by the camera at different frame rates will be calculated and compared by the CPU according to a certain algorithm. When the picture changes, such as someone walking by or the lens being moved, the number obtained by the calculation and comparison result will exceed the threshold and indicate that the system can automatically make corresponding processing.

[0003] In layman's terms, when someone walks in front of the camera or the camera is moved, a motion alarm will be triggered. The camera can take a screenshot of the changed motion detection area and transmit it back to the PC control system and the mobile phone.

[0004] When the user needs to search for motion detection, play the video, click the motion detection search button, and the motion detection area will appear on the playback screen of the video. Click the position of interest in the motion detection area, and the motion detection area data will be generated. Then read all the index data of the video in the hard disk, and take the intersection of the motion detection area data and the motion detection area data in all the index data. If the result is true, take out the index data. Finally, play the motion detection search video according to the offset position in the retrieved index data.

[0005] The disadvantage of the prior art is that the picture frequently jumps when playing after retrieval. Summary of the invention

[0006] The present invention provides a method, equipment and device for retrieving motion detection data, which are used to solve the problem of frequent picture jumps during playback after retrieval.

[0007] An embodiment of the present invention provides a method for retrieving dynamic inspection data, comprising:

[0008] Determine the first motion detection area to be searched and the preset number N of I frame index data to be compared in the motion detection area data;

[0009] In the I frame index data to be retrieved, first I frame index data having an intersection with the motion detection area data is obtained, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I frame index data;

[0010] For each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is generated by the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0011] The first I frame index data and the second I frame index data are used as the retrieved motion detection data, or the second I frame index data is used as the retrieved motion detection data.

[0012] Preferably, the motion detection area data is the area data obtained by dividing the video screen into a 22*18 table;

[0013] The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

[0014] Preferably, the I frame index data includes motion detection area data and offset position, wherein:

[0015] The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data;

[0016] When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

[0017] Preferably, when determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

[0018] Preferably, it further comprises:

[0019] The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

[0020] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the computer program:

[0021] Determine the first motion detection area to be searched and the preset number N of I frame index data to be compared in the motion detection area data;

[0022] In the I frame index data to be retrieved, first I frame index data having an intersection with the motion detection area data is obtained, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I frame index data;

[0023] For each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is generated by the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0024] The first I frame index data and the second I frame index data are used as the retrieved motion detection data, or the second I frame index data is used as the retrieved motion detection data.

[0025] Preferably, the motion detection area data is the area data obtained by dividing the video screen into a 22*18 table;

[0026] The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

[0027] Preferably, the I frame index data includes motion detection area data and offset position, wherein:

[0028] The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data;

[0029] When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

[0030] Preferably, when determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

[0031] Preferably, it further comprises:

[0032] The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

[0033] A computer-readable storage medium is provided in an embodiment of the present invention, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned animal inspection data retrieval method.

[0034] An embodiment of the present invention provides a dynamic inspection data retrieval device, comprising:

[0035] A search parameter determination module is used to determine the first motion detection area to be searched in the motion detection area data and the preset number N of I frame index data comparisons;

[0036] A first I-frame index data acquisition module is used to acquire first I-frame index data that has an intersection with the motion detection area data in the I-frame index data to be retrieved, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I-frame index data;

[0037] The second I-frame index data acquisition module is used to obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data after determining the third motion detection area for each first I-frame index data, wherein the third motion detection area is generated after the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0038] The motion detection data determination module is used to use the first I frame index data and the second I frame index data as the retrieved motion detection data, or use the second I frame index data as the retrieved motion detection data.

[0039] The beneficial effects of the present invention are as follows:

[0040] The problem with the existing solution is that when searching for an area, the reason for frequent screen jumps is that there are usually some I frame index data missing between two consecutively played frame index data because there is no intersection. That is, from a temporal point of view, the actual image information recorded by the two consecutively played hit I frame index data is usually discontinuous in time. At this time, the information displayed during playback gives the viewer a feeling of discontinuity. In the technical solution provided by the embodiment of the present invention, after determining the winning I frame index data (first I frame index data) according to the search area (first motion detection area) specified by the user, other related I frame index data (second I frame index data) will be further selected. The further selected I frame index data is used to solve the image continuity. Since the second I frame index data is selected by using the third motion detection area generated by the intersection of the first I frame index data and the motion detection area data to determine the motion detection area in the second I frame index data, the selected third motion detection area can meet the requirements of image continuity during playback. Therefore, since the continuity of the image is guaranteed, the problem of frequent picture jumps when playing after retrieval is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0042] Figure 1 This is a schematic diagram of the dynamic inspection area data in an embodiment of the present invention;

[0043] Figure 2-1 This is a schematic diagram of dynamic detection area data 1 in an embodiment of the present invention;

[0044] Figure 2-2 This is a schematic diagram of dynamic detection area data 2 in an embodiment of the present invention;

[0045] Figure 2-3 It is a schematic diagram of the operation of the motion detection area data 1 and the motion detection area data 2 in an embodiment of the present invention;

[0046] Figure 2-4 This is a schematic diagram of the newly generated dynamic inspection area data in an embodiment of the present invention;

[0047] Figure 3 It is a schematic diagram of the implementation process of the method for retrieving dynamic inspection data in an embodiment of the present invention;

[0048] Figure 4 A schematic diagram of the retrieval and playback implementation process in an embodiment of the present invention;

[0049] Figure 5Schematic diagram of the structure of the dynamic inspection data retrieval device in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] First, the scenarios and concepts implemented in the embodiments of the present invention are described.

[0051] Figure 1 This is a schematic diagram of motion detection area data. As shown in the figure, the motion detection area data refers to the area where the video screen is divided into a 22*18 table; in the motion detection area data, the area where motion detection occurs is set to 1, and other areas are set to 0. Among them, the area marked with 1 is called the motion detection area where motion detection occurs (referred to as the motion detection area in this application), which is determined based on the area in the picture where motion detection occurs. For example, if there are many people waving their arms in the picture, then all the places where people waving their arms in the picture are the areas where motion detection occurs, and they will be marked as 1. The motion detection area data is recorded in the following structure.

[0052] The win array in the structure represents rows from top to bottom from 0 to 17. Each row in the structure is represented by a 32-bit uint. The rightmost area is at the lowest bit. Except for the number of columns supported, other data bits are invalid. The dynamic detection area data structure is recorded as follows:

[0053]

[0054] The I-frame index data consists of two parts: the offset position of the I-frame data in the hard disk and the motion detection area data. The I-frame data structure is recorded as follows:

[0055]

[0056] Perform an AND operation on each corresponding bit in the two motion detection area data. Once one bit is established, the two motion detection area data have an intersection. Figure 2-1 This is a schematic diagram of the dynamic inspection area data 1. Figure 2-2 This is a schematic diagram of the dynamic inspection area data 2. Figure 2-3 This is a schematic diagram of the AND operation between the dynamic detection area data 1 and the dynamic detection area data 2. Figure 2-4 This is a schematic diagram of the newly generated motion detection area data, where the striped portion is the portion where the median of the motion detection area data is 1.

[0057] As shown in the figure, when Figure 2-1 The dynamic detection area data 1 and Figure 2-2 When the dynamic detection area data 2 in the intersection is Figure 2-3 The two valid data are respectively ANDed, and the grid part is the data where the ANDed operation is 1. Then the two dynamic detection area data have an intersection, and the new dynamic detection area data generated by the intersection of the two is as follows: Figure 2-4 As shown. The meaning of this figure is to find Figure 2-1The parts with the intersection of the data in the dynamic inspection area are Figure 2-2 Performing AND operation, we find Figure 2-2 The upper middle part Figure 2-1 There is an intersection, but the lower part is Figure 2-1 There is no intersection. So remove the non-intersection part and keep the intersection part, that is Figure 2-4 Therefore, Figure 2-4 yes Figure 2-1 and Figure 2-2 The part where the data in the motion detection area overlaps.

[0058] In the implementation, the existing back-end network video storage server (hereinafter referred to as storage) can be used to access and store the video stream of the front-end video encoder (hereinafter referred to as encoder). In the implementation, the widely used H264 / H265 encoding mode can be used. In this mode, the internal video data frame is divided into I / P / B frames. Among them, the I frame index data of a video is usually determined by the camera. Generally, the frame rate of the camera is 25, and the I frame interval is 50, that is, one I frame data every 2 seconds. Therefore, the I frame index data in the video is determined by the camera's own encoding configuration and the length of the video recording time.

[0059] When the encoder detects that an object is moving, it will generate a 22*18 motion detection area data based on the current page. It will also generate an auxiliary motion detection data frame based on the data and insert it into the video data to be sent out.

[0060] When storing the received data, the memory determines that it is an auxiliary motion detection data frame, and then records the motion detection area data first. When the I frame data is detected, the motion detection area data and the offset position of the I frame in the hard disk are combined into an I frame index data and written before the start position of the recording.

[0061] When the user needs to perform a motion detection search, play the video, click the motion detection search button, and a 22*18 grid will be superimposed on the playback screen of the video. After clicking the position of interest on the grid, a 22*18 motion detection area data will be generated. There is a one-to-one correspondence between the generated 22*18 motion detection area data and the 22*18 grid superimposed on the playback screen. Specifically, when the grid of interest on the screen is clicked, the corresponding position in the 22*18 motion detection area data is set to 1.

[0062] Then read all the I-frame index data of the video in the hard disk, and intersect the area marked as 1 in the motion detection area data with the area marked as 1 in the motion detection area data in all the I-frame index data. If the result is true, which means that the area is at least partially overlapped, then the I-frame index data is taken out. Finally, the motion detection retrieval video is played according to the offset position in the taken I-frame index data.

[0063] The implementation of this method will result in the following drawbacks: since it is a search for an area, that is, a search for the area selected by the user in the above example, the screen will frequently jump when playing after the search. The reason for the frequent jumps is that there are usually some I-frame index data missing between two consecutively played index data because there is no intersection. That is, from a temporal point of view, the actual image information recorded by the two consecutively played I-frame index data is usually discontinuous in time. At this time, the information displayed during the playback will give the viewer a feeling of discontinuity. For example, target 1 and target 2 pass through this area quickly one after another, but since the I-frame index data before or after recording target 1 and target 2 do not belong to the hit and retrieved data, they will not be played. In this way, under this scheme, the two targets will flash by, and the target movement trajectory cannot be seen, resulting in a poor user experience.

[0064] Based on this, a technical solution is provided in the implementation, which is implemented after the user inputs the desired dynamic inspection area data, and is explained below with reference to the accompanying drawings.

[0065] During implementation, after the customer inputs the desired motion detection area data, the number of I frame comparisons will also be input. The embodiment will mainly be described according to the default input number of 2, but it is also possible to select a larger number. The implementation principles and schemes will be described below, and those skilled in the art will easily derive an implementation method for setting multiple I frame comparison numbers. Therefore, two are only used to teach those skilled in the art how to implement the present invention specifically, but it does not mean that only two values ​​can be used. The corresponding values ​​can be determined in combination with practical needs during implementation.

[0066] Figure 3 A flowchart for implementing the method for retrieving animal inspection data is provided, as shown in the figure, which may include:

[0067] Step 301, determining a first motion detection area to be searched and a preset number N of I-frame index data to be compared in the motion detection area data;

[0068] Step 302: obtaining first I-frame index data having an intersection with the motion detection region data from the I-frame index data to be retrieved, wherein when determining whether there is an intersection, it is determined based on the first motion detection region and the second motion detection region in the I-frame index data;

[0069] Step 303: for each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is generated by the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0070] Step 304: Use the first I-frame index data and the second I-frame index data as the retrieved motion detection data, or use the second I-frame index data as the retrieved motion detection data.

[0071] In implementation, firstly, the winning I frame index data (first I frame index data) is determined according to the search area (first motion detection area) specified by the user, and then other related I frame index data (second I frame index data) are further selected. The further selected I frame index data is used to solve the image continuity. In implementation, the second I frame index data is selected by using the third motion detection area generated by the intersection of the first I frame index data and the motion detection area data to determine the motion detection area in the second I frame index data. In fact, as long as the third motion detection area can meet the requirements of image continuity, it can be used. Of course, it is also easy to see that the selected second I frame index data itself is not necessarily the winning I frame index data according to the user-specified area (first motion detection area).

[0072] Specifically, if a list method is used during implementation, all the I-frame index data of the video can be taken out from the hard disk, and the first I-frame index data is taken out to intersect with the motion detection area data that the customer wants. If the two intersect, the I-frame index data is put into the list to be played. Then, the new motion detection area data generated after the intersection of the two is intersected with the previous I-frame index data. If there is an intersection and the number of I-frames compared forward is smaller than the number of I-frame comparisons N input by the customer, the I-frame index data is put into the list to be played, otherwise the forward search is terminated, and so on. After the forward search is completed, the backward search is also performed in the same way. When the forward and backward searches are completed, the search for an I-frame index data is completed.

[0073] Then take out the next I frame index data taken from the video, repeat the above steps until all the I frame index data are retrieved. Finally, the I frame index data in the list to be played is deduplicated and the motion detection retrieval video is played.

[0074] Obviously, the list method is a relatively easy method to implement and is also suitable for computer processing, but it is obviously not the only method. For example, it is entirely possible to take out all the I frame index data, then select all the first I frame index data, and process each I frame index data in parallel, etc. Any method that can select the second I frame index data can be used.

[0075] In implementation, the motion detection area data is the area data obtained by dividing the video screen into a 22*18 table;

[0076] The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

[0077] In implementation, the I frame index data includes the motion detection area data and the offset position, where:

[0078] The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data;

[0079] When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

[0080] In implementation, when determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

[0081] During implementation, the method may further include:

[0082] The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

[0083] The following is a list format, using an example of selecting the second I frame index data in sequence for explanation. Since the forward / backward search steps are the same, only the implementation process of the forward search is listed in the example.

[0084] Example:

[0085] The letter N represents the number of I-frame comparisons, indicating that the comparison can be made N times forward or N times backward in implementation;

[0086] The letter D (1..2) represents the dynamic inspection area data;

[0087] The letter L (1..2) represents a list for temporarily storing I-frame index data;

[0088] The letter I (1..2) represents I frame index data.

[0089] Figure 4 A flowchart for retrieving and playing the video may include:

[0090] Step 401. The user inputs the number N of motion detection areas and I frame comparisons in the motion detection area data D1.

[0091] Specifically, D1 is a 22*18 area, and the motion detection area selected by the user is the area marked as 1 in the 22*18 area.

[0092] Step 402: Read all I-frame index data in the video into list L1.

[0093] Step 403. Take out the I frame index data I1 in L1 in sequence, and determine whether all of them have been taken out. If yes, go to step 409, otherwise go to step 404.

[0094] Specifically, after each I frame index data I1 in a frame L1 is taken out, the process proceeds to step 404 for processing until the processing of the I frame index data I1 in L1 is completed.

[0095] Step 404: Intersect the motion detection area in the motion detection area data of I1 with the motion detection area in D1. Determine whether there is an intersection, if yes, proceed to step 405, otherwise proceed to step 403.

[0096] Step 405: Put I1 into list L2 and find the motion detection area in the new motion detection area data D2.

[0097] Specifically, the method for calculating D2 can refer to the above Figure 2-1 , Figure 2-2 , Figure 2-3 to Figure 2-4 .

[0098] Step 406: Take out the I frame index data before the current index from L1 as I2, and make an intersection of the motion detection area in the motion detection area data in I2 and the motion detection area in D2.

[0099] Step 407: Determine whether there is an intersection and whether the number of I frames compared previously is less than N. If so, proceed to step 408; otherwise, proceed to step 403.

[0100] Step 408. Put I2 into list L2, and calculate the intersection of the dynamic detection area in the dynamic detection area data in I2 and the dynamic detection area in D2 to generate new dynamic detection area data D2. At the same time, set I2 as the current index and go to step 406.

[0101] Step 409: Arrange the I frame index data in list L2 in chronological order and remove duplicates.

[0102] Step 410: Play the video according to the I frame index data in list L2.

[0103] Based on the same inventive concept, an embodiment of the present invention also provides a motion detection data retrieval device, a computer device, and a computer-readable storage medium. Since the principles of solving problems by these devices are similar to those of the motion detection data retrieval method, the implementation of these devices can refer to the implementation of the method, and the repeated parts will not be repeated.

[0104] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the computer program:

[0105] Determine the first motion detection area to be searched and the preset number N of I frame index data to be compared in the motion detection area data;

[0106] In the I frame index data to be retrieved, first I frame index data having an intersection with the motion detection area data is obtained, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I frame index data;

[0107] For each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is generated by the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0108] The first I frame index data and the second I frame index data are used as the retrieved motion detection data, or the second I frame index data is used as the retrieved motion detection data.

[0109] In implementation, the motion detection area data is the area data obtained by dividing the video screen into a 22*18 table;

[0110] The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

[0111] In implementation, the I frame index data includes the motion detection area data and the offset position, where:

[0112] The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data;

[0113] When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

[0114] In implementation, when determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

[0115] During implementation, the method may further include:

[0116] The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

[0117] A computer-readable storage medium is also provided in an embodiment of the present invention, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned animal inspection data retrieval method.

[0118] An embodiment of the present invention also provides a dynamic inspection data retrieval device.

[0119] Figure 5 This is a schematic diagram of the structure of the animal inspection data retrieval device, as shown in the figure, which may include:

[0120] The search parameter determination module 501 is used to determine the first motion detection area to be searched in the motion detection area data and the preset number N of I frame index data comparisons;

[0121] The first I-frame index data acquisition module 502 is used to acquire the first I-frame index data that has an intersection with the motion detection area data in the I-frame index data to be searched, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I-frame index data;

[0122] The second I-frame index data acquisition module 503 is used to obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data after determining the third motion detection area for each first I-frame index data, wherein the third motion detection area is generated by the intersection of the N-th frame I-frame index data and the N-1-th frame I-frame index data, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data;

[0123] The motion detection data determination module 504 is used to use the first I frame index data and the second I frame index data as the retrieved motion detection data, or use the second I frame index data as the retrieved motion detection data.

[0124] For the convenience of description, the various parts of the above-mentioned device are divided into various modules or units according to their functions and described separately. Of course, when implementing the present invention, the functions of each module or unit can be implemented in the same or multiple software or hardware.

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

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

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

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

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

Claims

1. A method for retrieving dynamic inspection data, characterized in that: The method comprises: Determine the first motion detection area to be searched and the preset number N of I frame index data to be compared in the motion detection area data; In the I frame index data to be retrieved, first I frame index data having an intersection with the motion detection area data is obtained, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I frame index data; For each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is a motion detection area with intersection retained after the motion detection area in the N-th frame I-frame index data and the motion detection area in the N-1-th frame I-frame index data intersect, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data; Using the first I-frame index data and the second I-frame index data as the retrieved motion detection data, or using the second I-frame index data as the retrieved motion detection data; The I frame index data includes the motion detection area data and the offset position, where: The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data; When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

2. The method according to claim 1, characterized in that The motion detection area data is the area data obtained by dividing the video screen into a 22*18 table; The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

3. The method according to claim 1, characterized in that When determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

4. The method according to any one of claims 1 to 3, characterized in that: Further including: The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following method is implemented: Determine the first motion detection area to be searched and the preset number N of I frame index data to be compared in the motion detection area data; In the I frame index data to be retrieved, first I frame index data having an intersection with the motion detection area data is obtained, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I frame index data; For each first I-frame index data, after determining the third motion detection area, obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data, wherein the third motion detection area is a motion detection area with intersection retained after the motion detection area in the N-th frame I-frame index data and the motion detection area in the N-1-th frame I-frame index data intersect, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data; Using the first I-frame index data and the second I-frame index data as the retrieved motion detection data, or using the second I-frame index data as the retrieved motion detection data; The I frame index data includes the motion detection area data and the offset position, where: The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data; When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.

6. The computer device according to claim 5, characterized in that The motion detection area data is the area data obtained by dividing the video screen into a 22*18 table; The first motion detection area is an area in which motion detection has occurred in the motion detection area data.

7. The computer device according to claim 5, characterized in that When determining whether there is an intersection, it means that after performing an AND operation on each corresponding bit in the two motion detection area data, if at least one bit is established, it is determined that the two motion detection area data have an intersection.

8. The computer device according to any one of claims 5 to 7, characterized in that: Further including: The first I frame index data and / or the second I frame index data are deduplicated and used as the retrieved motion detection data.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 4.

10. A dynamic inspection data retrieval device, characterized in that: include: A search parameter determination module is used to determine the first motion detection area to be searched in the motion detection area data and the preset number N of I frame index data comparisons; A first I-frame index data acquisition module is used to acquire first I-frame index data that has an intersection with the motion detection area data in the I-frame index data to be retrieved, wherein when determining whether there is an intersection, it is determined based on the first motion detection area and the second motion detection area in the I-frame index data; The second I-frame index data acquisition module is used to obtain the second I-frame index data from the N I-frame index data before and / or after the first I-frame index data after determining the third motion detection area for each first I-frame index data, wherein the third motion detection area is a motion detection area with intersection retained after the motion detection area in the N-th frame I-frame index data and the motion detection area in the N-1-th frame I-frame index data intersect, the motion detection area data is the N=0 frame I-frame index data, and the first I-frame index data is the N=1 frame I-frame index data; the second I-frame index data is the N-th frame I-frame index data that intersects with the N-1-th frame I-frame index data; when determining whether there is an intersection, it is determined based on the third motion detection area and the motion detection area in the second I-frame index data; A motion detection data determination module, used to use the first I frame index data and the second I frame index data as the retrieved motion detection data, or use the second I frame index data as the retrieved motion detection data; The I frame index data includes the motion detection area data and the offset position, where: The motion detection area data in the I frame index data is the 22*18 motion detection area data generated by the encoder based on the current page when the encoder detects the movement of an object, and an auxiliary motion detection data frame is generated with the data and inserted into the video data; When storing the auxiliary motion detection data frame, the memory first records the motion detection area data, and when the I frame data is detected, the motion detection area data and the offset position of the I frame data in the hard disk are combined into I frame index data.