ORB-based video monitoring method, system and device and medium
Through ORB algorithm and feature point matching technology, the problems of large amount of calculation and poor accuracy of traditional video monitoring methods in complex scenarios are solved, and the rapid, accurate comparison and real-time monitoring of video content are achieved, which improves the efficiency and accuracy of video monitoring. .
Patent Information
- Application Number
- CN202410989036.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-29
AI Technical Summary
Traditional video monitoring methods have large amounts of calculation, poor real-time performance and poor accuracy when dealing with complex scenes, especially when dealing with lighting changes, image rotation or scale changes, making it difficult to accurately identify video content.
Using the video monitoring method based on the ORB algorithm, through video keyframe extraction, feature point matching and alarm determination, combined with FAST feature point detection and BRIEF descriptor generation, the fast and accurate comparison of video content is achieved and real-time video stream monitoring is supported.
It improves the efficiency and accuracy of video comparison, avoids the mismatch problem of traditional pixel-level comparison, has rotation invariance and robustness, meets the needs of real-time monitoring, and supports the monitoring of video files and real-time video streams.
Smart Images

Figure CN119048973A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to an ORB-based video monitoring method, system, device and medium. Background Art
[0002] In the past decade, with the rapid development of Internet technology and the popularization of smart devices, the production and consumption of video content has entered a new era. With the rapid development of science and technology, video monitoring technology has become an indispensable part of modern society. However, when dealing with complex scenes, traditional video monitoring methods often face problems such as large computational complexity, poor real-time performance, and low accuracy. Therefore, developing an efficient, accurate, and real-time video monitoring method has important practical significance and application value.
[0003] In current video comparison technology, accurately and efficiently identifying the similarities or differences between two or more videos is an important challenge. Traditional video comparison methods are usually based on pixel-level comparisons, which are direct but have obvious flaws. Traditional pixel-level comparison methods require pixel-level comparisons for each frame in the video, which results in huge computational complexity and slow processing speed, especially when dealing with high-resolution or long-duration videos. They perform poorly when dealing with illumination changes, image rotations, or scale changes, which directly affect the pixel-level comparison results. In complex video scenes, such as background noise, occlusion, motion blur, etc., traditional pixel-level comparison methods often have difficulty accurately identifying video content. Summary of the invention
[0004] The object of the present invention is to provide a video monitoring method, system, device and medium based on ORB, so as to solve all or one of the above problems existing in the prior art.
[0005] In order to solve the above technical problems, the specific technical solutions of the present invention are as follows: In one aspect, the present invention provides a video monitoring method based on ORB, comprising the following steps: Video acquisition steps: Pull the two video streams that need to be compared and perform preprocessing; Video key frame extraction and processing steps: Extracting and processing video key frames on the preprocessed video stream; Feature extraction processing steps: The ORB algorithm is used to extract features from key frames and calculate the descriptors of key points; Signature matching alarm steps: Perform feature point matching and determine whether to issue an alarm.
[0006] As an improved solution, the pulling of two video streams to be compared and preprocessing further includes: Specifically, obtain the source video stream and the video stream of the device or system to be supervised: Specifically, the input video is preprocessed, including denoising, enhancement and other operations, to improve the video quality.
[0007] As an improved solution, the video key frame extraction further includes: The time interval method is used to extract key frames from the source video stream and the monitored video stream.
[0008] As an improved solution, the video key frame processing further includes: Grayscale processing, key frame cropping, key frame scaling, and each frame is marked with a time stamp and video identifier for storage.
[0009] As an improved solution, the method of extracting features from key frames using the ORB algorithm and calculating descriptors of key points further includes: Perform ORB feature point extraction on the extracted and stored key frames; The FAST feature point detection algorithm and the BRIEF descriptor generation algorithm are combined to extract feature points in the image and generate corresponding descriptors.
[0010] As an improved solution, the feature point matching and determining whether to issue an alarm include: In response to the number of mismatches occurring within a time period reaching a threshold, a feature matching alarm is issued.
[0011] As an improved solution, the matching of feature points and determining whether to issue an alarm further includes: Match feature points of key frames of two videos to be compared; By calculating the difference between the descriptors of the key frames of the two videos to be compared, the matching feature point pairs are found, and the result array is recorded to obtain the matching result array of the key frames of the two videos at this moment; The matching result array of the key frames of the two videos at this moment is screened, and the results whose differences are lower than the first threshold are counted; The ratio between the calculated statistical value and the size of the original matching result array is calculated. When the ratio is lower than a second threshold, the key frame is determined to be matched. When the number of mismatched key frames reaches the threshold, an alarm is issued.
[0012] On the other hand, the present invention also provides a video monitoring system based on ORB, comprising: The video acquisition module is used to: pull the two video streams that need to be compared and perform preprocessing; The video key frame extraction and processing module is used to: extract and process the video key frames of the pre-processed video stream; The feature extraction processing module is used to: extract features from key frames using the ORB algorithm and calculate the descriptors of key points; The feature matching alarm module is used to match feature points and determine whether to issue an alarm.
[0013] On the other hand, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the ORB-based video monitoring method are implemented.
[0014] On the other hand, the present invention further provides a computer device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: The memory is used to store computer programs; The processor is used to execute the steps of the ORB-based video monitoring method by running the program stored in the memory.
[0015] The beneficial effects of the technical solution of the present invention are: 1. The ORB-based video monitoring method described in the present invention can accurately judge the similarity between two videos by matching feature points, avoiding the mismatch problem in traditional pixel-level comparison methods; improves the efficiency of video comparison based on the ORB algorithm; achieves rotation invariance by introducing direction information, further enhancing robustness; meets real-time requirements based on rapid comparison and recognition of video content; supports playback monitoring of real-time video streams and also supports playback monitoring of video files, and has better versatility and compatibility.
[0016] 2. The ORB-based video monitoring system of the present invention can realize the ORB-based video monitoring method of the present invention through the mutual cooperation of system modules.
[0017] 3. The computer-readable storage medium described in the present invention can guide the system module to cooperate, thereby realizing the ORB-based video monitoring method described in the present invention, and the computer-readable storage medium described in the present invention also effectively improves the operability of the ORB-based video monitoring method.
[0018] 4. The computer device described in the present invention can store and execute the computer-readable storage medium, thereby realizing the ORB-based video monitoring method described in the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a flow chart of the ORB-based video monitoring method according to Embodiment 1 of the present invention; Figure 2 is a logical flow diagram of the ORB-based video monitoring method described in Example 1 of the present invention; Figure 3 is a detailed logic flow diagram of the ORB-based video monitoring method described in Example 1 of the present invention; Figure 4 1 is a schematic diagram of a video key frame processing flow of an ORB-based video monitoring method according to Embodiment 1 of the present invention; Figure 5 1 is a schematic diagram of a video key frame matching determination process of an ORB-based video monitoring method according to Embodiment 1 of the present invention; Figure 6 is a schematic diagram of the architecture of the ORB-based video monitoring system according to Embodiment 2 of the present invention; Figure 7 is a schematic diagram of the structure of the computer device described in Example 4 of the present invention; The symbols in the accompanying drawings are explained as follows: 1501, processor; 1502, communication interface; 1503, memory; 1504, communication bus. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0022] In the description of the present invention, it should be noted that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all of the embodiments; based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
[0023] The terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0024] In the description of the present invention, it should be noted that in recent years, image and video comparison methods based on feature points have received widespread attention; among them, the ORB algorithm, as a fast and robust feature point detection and descriptor generation algorithm, has been widely used in image recognition and video processing and other fields; the ORB algorithm is a fast key point detection and descriptor extraction algorithm, which combines FAST feature detection with BRIEF feature description, has scale invariance and rotation invariance, and has strong anti-interference ability to noise. Example 1
[0025] This embodiment provides a video monitoring method based on ORB, such as Figure 1~Figure 5 As shown, the following steps are included: The core function of this method is to extract and compare the key frames in the video by utilizing the efficiency and robustness of the ORB algorithm to achieve fast and accurate video content comparison, and then realize video stream playback monitoring. When the number of unmatched frames reaches the set threshold, an alarm is issued that there is a problem with the video playback. The alarm methods include buzzer and message sending, etc., to remind supervisors to conduct relevant inspections and processing. The specific steps are as follows: S100, video acquisition steps: In this step, two video streams that need to be compared are pulled and preprocessed; Specifically, obtain the source video stream and the video stream of the device or system to be supervised: Specifically, the input video is preprocessed, including denoising, enhancement and other operations, to improve the video quality.
[0026] S200, video key frame extraction and processing steps: In this step, video key frame extraction and video key frame processing are performed; Specifically, the key frames of the source video stream and the monitored video stream are extracted by using a time interval method, or other video key frame extraction methods; Specifically, the extracted key frames are further processed, including: (1) Grayscale processing to reduce the impact of color and reduce the size of video frame data. Specifically: Grayscale the video frame to remove chromaticity interference, reduce the impact of color distortion, simplify feature extraction and reduce information interference, and reduce storage pressure and improve storage performance. Although color information is lost, the grayscale image retains the main spatial structure and intensity change information of the original image, which is sufficient for most image processing tasks. Due to the reduction in data volume, computers usually process grayscale images faster than color images, which is particularly important for applications that require real-time processing.
[0027] (2) Perform key frame trimming and scaling to identify the feature value generation area (i.e., the area that needs to be monitored), specifically: Cropping: By cropping the video frame, you can remove unnecessary black edges and other miscellaneous interference, focus on the main monitoring area, and further improve storage performance. The cropping area and size can be set according to actual conditions.
[0028] Scaling: Keyframe scaling can ensure that the features across data sets are at the same scale, facilitating effective comparison and analysis; at the same time, keyframe scaling can also improve detail clarity and optimize texture feature extraction; in addition, keyframe scaling can greatly reduce the amount of calculation and memory space occupied, helping to improve the efficiency and accuracy of data processing. Keyframe scaling uses the Lanczos interpolation algorithm for scaling, and its kernel function formula is as follows: ; Where sinc(x) = sin(πx) / (πx), a is the width of the kernel function; First, determine the position of the point to be interpolated, and then select a window centered on the interpolation point in the original image. Next, apply the Lanczos kernel function to each pixel in the window to calculate its weight, and finally obtain the pixel value of the interpolation point by taking the weighted sum of all pixels. The formula is as follows: ; In digital image processing, the high-frequency signal folds into the low-frequency area due to the failure to meet the Nyquist sampling theorem, resulting in aliasing, which affects our final judgment results. The Lanczos kernel effectively cuts off these high-frequency parts through the product form of its sinc function, thereby avoiding the aliasing effect during image scaling and presenting the texture details of the video key frame more clearly. This is particularly critical for subsequent texture analysis; (3) Reduce the amount of video frame data and reduce memory load. Finally, add a timestamp and video identifier to each frame for storage. Specifically: Storage and regular cleanup: The processed key frames are marked with timestamps and unique video identifiers (to facilitate comparison of different video key frames at the same time) and stored (can be stored on internal or external storage disks), and an effective time is set. When the effective time expires, the expired video key frames are cleaned up in time.
[0029] S300, feature extraction processing steps: In this step, the ORB algorithm is used for feature point detection and feature descriptor extraction and matching: Specifically, the ORB algorithm is used to extract features from key frames and calculate the descriptors of key points; ORB feature points are extracted from the extracted and stored key frames; the ORB algorithm combines the advantages of the FAST feature point detection algorithm and the BRIEF descriptor generation algorithm, and can quickly and accurately extract feature points in the image and generate corresponding descriptors; Furthermore, the ORB algorithm is divided into two parts, namely feature point extraction and feature point description. Feature extraction is developed from the FAST (Features from Accelerated Segment Test) algorithm, and feature point description is improved based on the BRIEF (Binary Robust Independent Elementary Features) feature description algorithm. The feature extraction of the ORB algorithm is improved by the FAST algorithm, which is called oFAST (FAST Keypoint Orientation); that is, after using FAST to extract feature points, a feature point direction is defined to achieve the rotation invariance of the feature points; and its feature point description is rBRIEF feature description, which is improved by adding a rotation factor on the basis of the general BRIEF feature description. After obtaining the matching result array according to the ORB algorithm, loop the array to find the matches with a difference less than the threshold as acceptable matches, and count their number. Finally, the counted number is divided by the total number of the result array to obtain a ratio. This ratio is used to describe the similarity of the two frames. When the similarity is greater than the threshold we set, the two frames can be determined to be consistent.
[0030] S400, feature matching alarm steps: In this step, feature point matching is performed and it is determined whether to issue an alarm: as time goes by, the number of comparisons increases. When the number of mismatches in a certain period of time reaches a certain threshold, an alarm can be generated. The alarm method includes but is not limited to buzzer, short message and other alarm methods to prompt relevant staff; Specifically, feature point matching is performed on the key frames of the two videos to be compared; the difference between the descriptors of the key frames of the two videos to be compared is calculated to find the best matching feature point pair, that is, the one with the smallest difference, and the result array is recorded to obtain the matching result array of the key frames of the two videos at this moment; Specifically, the matching result array of the key frames of the two videos at this moment is screened, and the results with differences lower than the set threshold T (i.e., the first threshold) are counted (the smaller the difference, the greater the similarity), and the obtained statistical value is divided by the size of the original matching result array to obtain a ratio. When the ratio is lower than the set threshold F (i.e., the second threshold), it is determined that the two key frames do not match. When the number of unmatched key frames reaches a certain number N (i.e., the number threshold), an alarm can be started.
[0031] It should be noted that the above examples are only for explaining the present invention and cannot limit the protection scope of the present invention. Example 2
[0032] This embodiment is based on the same inventive concept as the video monitoring method based on ORB described in Embodiment 1, and provides a video monitoring system based on ORB, such as Figure 6 As shown, including: The video preprocessing module is used to obtain the source video stream and the video stream of the device or system to be supervised: pull the two video streams that need to be compared; preprocess the input video, including denoising, enhancement and other operations to improve the video quality.
[0033] The video key frame extraction module is used to extract video key frames. In this embodiment, the video key frames are extracted in a time interval manner to provide continuous video key frames.
[0034] The video key frame processing module is used to grayscale, crop, and scale the key frames obtained by the video key frame extraction module to facilitate the subsequent feature value extraction and comparison. The more specific functions are as follows: Among them, the video key frame processing module includes a key frame grayscale unit, whose function is to grayscale the video frame, remove chromatic interference, reduce the impact of color distortion, simplify feature extraction and reduce information interference, and reduce storage pressure and improve storage performance. Although color information is lost, the grayscale image retains the main spatial structure and intensity change information of the original image, which is sufficient for most image processing tasks. Due to the reduction in data volume, the computer usually processes grayscale images faster than color images, which is particularly important for applications that require real-time processing.
[0035] Among them, the video key frame processing module includes a key frame cropping unit, whose function is to crop the video frame, remove unnecessary black edges and other miscellaneous interference, focus on the main monitoring area, and further improve the storage performance.
[0036] Among them, the video key frame processing module includes a key frame scaling unit, which can ensure that the features across data sets are at the same scale, facilitating effective comparison and analysis; at the same time, key frame scaling can also improve detail clarity and optimize texture feature extraction; in addition, key frame scaling can greatly reduce the amount of calculation and memory space occupied, which helps to improve the efficiency and accuracy of data processing. In this embodiment, the scaling is performed using the Lanczos interpolation algorithm. The Lanczos kernel effectively cuts off these high-frequency parts through the product form of its sinc function, thereby avoiding the aliasing effect during image scaling and presenting the texture details of the video key frame more clearly.
[0037] The video key frame processing module includes a key frame storage unit, which has the function of marking the processed key frame with a unique video identifier and a timestamp tag of the key frame, and storing relevant information to facilitate query and comparison for subsequent related operations.
[0038] The key frame matching judgment module is used to: use the ORB algorithm to extract features from key frames and calculate the descriptors of key points. Furthermore, the ORB algorithm is divided into two parts, namely feature point extraction and feature point description. Feature extraction is developed from the FAST (Features from Accelerated Segment Test) algorithm, and feature point description is improved based on the BRIEF (Binary Robust Independent Elementary Features) feature description algorithm. The ORB feature combines the FAST feature point detection method with the BRIEF feature descriptor, and improves and optimizes them on their original basis. More precisely, the feature extraction of the ORB algorithm is improved by the FAST algorithm, which is called oFAST (FAST Keypoint Orientation) here. That is to say, after using FAST to extract feature points, a feature point direction is defined for it to achieve the rotation invariance of the feature points; and its feature point description is rBRIEF feature description, which is improved by adding rotation factors on the basis of the general BRIEF feature description. After obtaining the matching result array according to the ORB algorithm, loop the array to find the matches with differences less than the threshold as acceptable matches, and count their number. Finally, the counted number is divided by the total number of the result array to get a ratio. This ratio is used to describe the similarity of the two frames. When the similarity is greater than the threshold we set, the two frames can be determined to be consistent. After obtaining the key points and feature descriptors through the ORB algorithm, all descriptors of the source video frame are violently matched with all descriptors of the key frame of the monitored video stream. The pair with the smallest difference is selected as the matching pair, and the relevant information is stored in the result array until all descriptors are matched to obtain the result array. Further, loop the result array to filter the matching pairs that meet our expectations and count their number. Further, the statistic is divided by the length of the array to get the similarity, and it is determined whether the value is greater than the set threshold. If it is greater than, it means that the input source video frame and the monitored video frame are consistent, otherwise they are inconsistent, and the comparison result is output.
[0039] The alarm generation module is used to: determine whether to alarm, if an alarm is generated, record the alarm information in time, and issue an alarm to remind relevant staff; more specific functions are as follows: statistics are performed based on the results obtained by the key frame matching judgment module. When the source video frame and the supervised video frame are continuously transmitted to the key frame matching judgment module according to the time interval, and the comparison results of the source video frame and the supervised video frame with the same timestamp are continuously output, we count the number of mismatches, recorded as X, and when X reaches a certain set value, an alarm can be generated, and the relevant staff can be reminded by means of a buzzer or the like; each set of source video and supervised video are compared according to the above method, and an alarm is generated, so that the device that broadcasts a certain source video can be supervised to monitor whether it is broadcasting normally. Example 3
[0040] This embodiment provides a computer-readable storage medium, including: The storage medium is used to store computer software instructions used to implement the ORB-based video monitoring method described in the above-mentioned Example 1, which includes instructions for executing the above-mentioned program set for the ORB-based video monitoring method; specifically, the executable program can be built into the ORB-based video monitoring system described in Example 2, so that the ORB-based video monitoring system can implement the ORB-based video monitoring method described in Example 1 by executing the built-in executable program.
[0041] In addition, the computer-readable storage medium of this embodiment may adopt any combination of one or more computer-readable storage media, wherein the computer-readable storage medium includes electrical, optical, electromagnetic, infrared or semiconductor systems, devices or components, or any combination thereof. Example 4
[0042] This embodiment provides an electronic device, such as Figure 7 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0043] Memory 1503, used for storing computer programs; The processor 1501 is used to implement the steps of the ORB-based video monitoring method described in the above embodiment 1 when executing the computer program stored in the memory 1503.
[0044] As an embodiment of the present invention, the communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0045] As an implementation mode of the present invention, the communication interface is used for communication between the above-mentioned terminal and other devices.
[0046] As an embodiment of the present invention, the memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0047] As an embodiment of the present invention, the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0048] Different from the prior art, the present application adopts an ORB-based video monitoring method, system, device and medium, which can accurately judge the similarity between two videos by matching feature points, avoiding the mismatch problem in the traditional pixel-level comparison method; improves the efficiency of video comparison based on the ORB algorithm; realizes rotation invariance by introducing direction information, further enhancing the robustness; meets the real-time requirements based on the rapid comparison and recognition of video content; supports playback monitoring of real-time video streams, and also supports playback monitoring of video files, with better versatility and compatibility.
[0049] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.
[0050] It should also be understood that in the embodiments of this article, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0051] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this article.
[0052] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0053] In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.
[0054] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this article.
[0055] In addition, each functional unit in each embodiment of this invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
[0056] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0057] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A video monitoring method based on ORB, characterized in that: The following steps are involved: Video acquisition steps: Pull the two video streams that need to be compared and perform preprocessing; Video key frame extraction and processing steps: Extracting and processing video key frames on the preprocessed video stream; Feature extraction processing steps: The ORB algorithm is used to extract features from key frames and calculate the descriptors of key points; Signature matching alarm steps: Perform feature point matching and determine whether to issue an alarm.
2. The ORB-based video monitoring method according to claim 1, characterized in that: Pulling two video streams to be compared and preprocessing them further includes: Specifically, obtain the source video stream and the video stream of the device or system to be supervised: Specifically, the input video is preprocessed, including denoising, enhancement and other operations, to improve the video quality.
3. The ORB-based video monitoring method according to claim 1, characterized in that: The video key frame extraction further comprises: The time interval method is used to extract key frames from the source video stream and the monitored video stream.
4. The ORB-based video monitoring method according to claim 1, characterized in that: The video key frame processing further includes: Grayscale processing, key frame cropping, key frame scaling, and each frame is marked with a time stamp and video identifier for storage.
5. The ORB-based video monitoring method according to claim 1, characterized in that: The method of extracting features from key frames using the ORB algorithm and calculating descriptors of key points further includes: Perform ORB feature point extraction on the extracted and stored key frames; The FAST feature point detection algorithm and the BRIEF descriptor generation algorithm are combined to extract feature points in the image and generate corresponding descriptors.
6. The ORB-based video monitoring method according to claim 1, characterized in that: The matching of feature points and determining whether to issue an alarm include: In response to the number of mismatches occurring within a time period reaching a threshold, a feature matching alarm is issued.
7. The ORB-based video monitoring method according to claim 1, characterized in that: The matching of feature points and determining whether to issue an alarm further includes: Match feature points of key frames of two videos to be compared; By calculating the difference between the descriptors of the key frames of the two videos to be compared, the matching feature point pairs are found, and the result array is recorded to obtain the matching result array of the key frames of the two videos at this moment; The matching result array of the key frames of the two videos at this moment is screened, and the results whose differences are lower than the first threshold are counted; The ratio between the calculated statistical value and the size of the original matching result array is calculated. When the ratio is lower than a second threshold, the key frame is determined to be matched. When the number of mismatched key frames reaches the threshold, an alarm is issued.
8. A video monitoring system based on ORB, characterized in that: include: The video acquisition module is used to: pull the two video streams that need to be compared and perform preprocessing; The video key frame extraction and processing module is used to: extract and process the video key frames of the pre-processed video stream; The feature extraction processing module is used to: extract features from key frames using the ORB algorithm and calculate the descriptors of key points; The feature matching alarm module is used to match feature points and determine whether to issue an alarm.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the ORB-based video monitoring method according to any one of claims 1 to 7 are implemented.
10. A computer device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein: The memory is used to store computer programs; The processor is used to execute the steps of the ORB-based video monitoring method according to any one of claims 1 to 7 by running the program stored in the memory.
