CN114758300A - Method, device and equipment for judging malicious shielding of scene and readable storage medium - Google Patents

Method, device and equipment for judging malicious shielding of scene and readable storage medium Download PDF

Info

Publication number
CN114758300A
CN114758300A CN202210448105.8A CN202210448105A CN114758300A CN 114758300 A CN114758300 A CN 114758300A CN 202210448105 A CN202210448105 A CN 202210448105A CN 114758300 A CN114758300 A CN 114758300A
Authority
CN
China
Prior art keywords
pixel
key
frame
point
key pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210448105.8A
Other languages
Chinese (zh)
Inventor
蔡泽武
钱琳瑞
王东兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiafu Information Technology Co ltd
Original Assignee
Beijing Jiafu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jiafu Information Technology Co ltd filed Critical Beijing Jiafu Information Technology Co ltd
Priority to CN202210448105.8A priority Critical patent/CN114758300A/en
Publication of CN114758300A publication Critical patent/CN114758300A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention provides a method, a device, equipment and a readable storage medium for judging malicious shielding of a scene, wherein the method comprises the steps of acquiring a coordinate matrix, wherein the coordinate matrix comprises coordinate information of at least one key pixel point in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the obvious change of a pixel value when moving in any direction in the monitoring scene; obtaining a pixel matrix of each frame of a monitoring scene according to the coordinate matrix, wherein the pixel matrix comprises a pixel value of a key pixel point corresponding to each coordinate information in the coordinate matrix in the current frame; judging whether key pixel points in the current frame are foreground points or not according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground points are the key pixel points which are shielded in the current frame; according to the judgment result of whether the key pixel points in the current frame are foreground points or not, the judgment result of whether the monitoring scene is maliciously shielded or not is obtained.

Description

Method, device and equipment for judging malicious shielding of scene and readable storage medium
Technical Field
The invention relates to the field of image recognition, in particular to a method, a device and equipment for judging malicious occlusion of a scene and a readable storage medium.
Background
In the prior art, a frame difference method and a mode based on a gray histogram are mainly adopted to detect whether a scene is blocked or switched, but the method cannot meet the requirements of rapid and high-precision monitoring in a complex scene, and along with the continuous improvement of the definition of a camera, a difference value of each pixel point of an image can be calculated by calculating a difference matrix based on the image to detect switching or blocking, so that a large amount of time and resources can be consumed, and the real-time requirement cannot be met, so that a rapid and effective identification method for scene switching and malicious blocking in the complex scene needs to be found to meet the security and protection requirements.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for judging malicious scene occlusion and a readable storage medium, so as to solve the problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a method for determining malicious occlusion of a scene, where the method includes:
acquiring a coordinate matrix, wherein the coordinate matrix comprises coordinate information of at least one key pixel point in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the obvious change of a pixel value when moving along any direction in the monitoring scene;
Obtaining a pixel matrix of each frame of a monitoring scene according to the coordinate matrix, wherein the pixel matrix comprises a pixel value of a key pixel point corresponding to each piece of coordinate information in the coordinate matrix in a current frame;
judging whether key pixel points in the current frame are foreground points or not according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground points are the key pixel points which are shielded in the current frame;
and obtaining a judgment result of whether the monitoring scene is maliciously shielded or not according to the judgment result of whether the key pixel points in the current frame are the foreground points or not.
In a second aspect, an embodiment of the present application provides an apparatus for determining malicious occlusion of a scene, where the apparatus includes:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a coordinate matrix, the coordinate matrix comprises coordinate information of at least one key pixel point in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the obvious change of a pixel value when moving along any direction in the monitoring scene;
the conversion module is used for obtaining a pixel matrix of each frame of a monitoring scene according to the coordinate matrix, and the pixel matrix comprises the pixel value of a key pixel point corresponding to each piece of coordinate information in the coordinate matrix in the current frame;
The first judging module is used for judging whether key pixel points in the current frame are foreground points or not according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground points are the key pixel points which are shielded in the current frame;
and the second judging module is used for obtaining a judging result of whether the monitoring scene is maliciously shielded or not according to the judging result of whether the key pixel points in the current frame are the foreground points or not.
In a third aspect, an embodiment of the present application provides a device for determining malicious occlusion of a scene, where the device includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the method for judging the malicious shielding of the scene when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the method for determining malicious occlusion of a scene are implemented.
The beneficial effects of the invention are as follows:
1. based on the defects, whether the key pixel points are shielded or not is judged according to the pixel values of the key pixel points in the sample set of the first frame and the difference value between the pixel values of the neighborhood points of the key pixel points and the pixel values of the corresponding key pixel points of other frames except the first frame, namely whether the key pixel points in each frame are shielded or not can be presumed, and a quick and effective judgment method is provided for judging malicious shielding of a scene by extracting the key pixel points in a monitored scene to participate in calculation;
2. The method can send the warning information after judging that the monitoring scene of the camera is maliciously shielded or the camera is artificially rotated, can reset the algorithm of the camera after the warning information is received, and can automatically reset the algorithm of the camera at intervals in daily monitoring, thereby effectively avoiding the problem of false alarm caused by the influence of light change on monitoring accuracy, providing a stable, reliable and high-accuracy judging method for judging the maliciousness shielding of the scene, and being widely applicable to various daily monitoring scenes for ensuring daily security and protection requirements.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a method for determining malicious occlusion of a scene according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a device for determining malicious occlusion of a scene according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a device for determining malicious occlusion of a scene according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a method for determining malicious occlusion of a scene, where the method includes step S1, step S2, step S3, and step S4.
Step S1, obtaining a coordinate matrix, wherein the coordinate matrix comprises coordinate information of at least one key pixel point included in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the pixel value to obviously change when moving along any direction in the monitoring scene;
step S2, obtaining a pixel matrix of each frame of the monitoring scene according to the coordinate matrix, wherein the pixel matrix comprises the pixel value of a key pixel point corresponding to each piece of coordinate information in the coordinate matrix in the current frame;
step S3, judging whether a key pixel point in the current frame is a foreground point according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground point is a blocked key pixel point in the current frame;
And step S4, obtaining a judgment result of whether the monitoring scene is maliciously shielded according to the judgment result of whether the key pixel points in the current frame are the foreground points.
At present, in a complex scene, a frame difference method, a detection algorithm based on a gray histogram and the like are adopted, pixel points in an image need to participate in operation, the calculation time is increased, meanwhile, a mode of double background extraction and double foreground is adopted in the prior art, an original background is not updated all the time, the detection precision is greatly influenced along with the change of light, and then a false alarm condition occurs.
Therefore, in this embodiment, the key pixel points of the first frame in the scene to be monitored are extracted, the coordinate information of the key pixel points is converted into the coordinate matrix, the pixel matrices of the first frame and other frames except the first frame are obtained through the conversion of the coordinate matrix of the first frame, whether the key pixel points in the pixel matrix are the blocked points is judged by calculating the pixel values of the key pixel points in the sample set of the first frame and the difference values between the pixel values of the neighboring points of the key pixel points and the pixel values of the key pixel points in the pixel matrices of other frames except the first frame, when the key pixel points are all judged to be the blocked points in the case of continuous multiple frames, the key pixel points can be judged to be the maliciously blocked points, and whether the single frame is the artificially maliciously blocked frame can be judged by calculating the number of the key pixel points in the frame as the maliciously blocked points, when the monitoring scene is judged to be maliciously shielded frames under the condition of continuous multiframes, whether the monitoring scene is maliciously shielded or the camera is artificially rotated can be judged, alarm information can be sent when the monitoring scene is judged to be maliciously shielded or the camera is artificially rotated, algorithm resetting can be automatically carried out after the alarm information is sent, in addition, a monitoring period can be set under daily monitoring, algorithm resetting can be automatically carried out after the camera works for a monitoring period, the problem that false alarm is reported due to the fact that light change affects monitoring precision is avoided, the monitoring period is related to light intensity and light change frequency of a specific monitoring scene, the higher the light intensity is, the faster the light change frequency is, the shorter the period length of the monitoring period is, and the higher the frequency of the resetting algorithm is.
According to the characteristics, whether the current monitoring scene is maliciously shielded or whether the camera is artificially rotated can be quickly and accurately judged. The method for judging whether the monitoring scene is maliciously shielded or not and whether the monitoring camera is artificially rotated or not is provided, and the method is fast, reliable and high in precision, and can be widely applied to various daily monitoring scenes to guarantee daily security and protection requirements.
In a specific embodiment of the present disclosure, the step S1 may further include a step S11 and a step S12.
Step S11, extracting coordinate information of at least one key pixel point included in the first frame according to a key pixel point detection model, wherein the key pixel point detection model is used for extracting the coordinate information of the key pixel point in the monitoring scene;
and step S12, sending the coordinate information of the key pixel point to a first function to obtain the coordinate matrix.
In this embodiment, coordinate information of a plurality of key pixel points included in a first frame of a monitoring scene is extracted through a key pixel point detection model, and a detection algorithm adopted by the key pixel point detection model is as follows:
K(x,y)=Shi-Tomasi(imgt,n)t=0
St=imgt(K(x,y))t=0
the method comprises the steps that img is a monitoring scene, n is the number of key pixel points, different values can be obtained according to different monitoring scenes, S is a pixel matrix of the key pixel points obtained according to coordinate information of the key pixel points in the monitoring scene, the coordinate information is converted into the coordinate matrix to participate in calculation, the number of the pixel points participating in calculation is reduced, the calculation speed is greatly improved, the speed of judging whether the monitoring scene is maliciously shielded or the speed of artificially rotating a camera is improved, and the requirement of real-time alarming is met.
In a specific embodiment of the present disclosure, the step S3 may further include a step S31, a step S32, and a step S33.
Step S31, constructing at least one sample set according to the pixel matrix of the first frame, where the sample set includes a pixel value of one key pixel point in the pixel matrix of the first frame and a pixel value of a neighboring point of the key pixel point;
step S32, subtracting the pixel value of the key pixel of the current frame from the sample set of the key pixel in the first frame to obtain first information, where the first information includes a difference between the pixel value of the key pixel of the current frame and the pixel value of the key pixel included in the sample set of the key pixel in the first frame and the pixel value of the neighborhood point of the key pixel;
step S33, determining whether the key pixel is a foreground point according to the number of pixels whose difference between the pixel values included in the first information is greater than a first threshold, where the first threshold includes a threshold for determining whether the pixel value of the key pixel of the current frame is close to the pixel value of the key pixel included in the sample set corresponding to the key pixel and the pixel value of the neighborhood point of the key pixel.
In this embodiment, the pixel matrices of the first frame and the other frames except the first frame are obtained through the coordinate matrix of the first frame, and a sample set is established according to the pixel matrix of the first frame, where the set of the sample set is:
Mi(x,y)={St(y|y∈NG(x))},t=0,i∈(0,n]
in the formula, Mi(x, y) is a set of key pixel points (x, y) in the first frame of the monitored scene, St(x, y) is a pixel matrix corresponding to the coordinates of key pixel points in the coordinate matrix, n is the number of the key pixel points, and NG is a neighborhood point of the key pixel points in the monitoring scene, wherein the first key pixel point (x, y)1,y1) The sample set of (a) is:
M1(x1,y1)={S1(x1,y1),v11(x1,y1),v12(x1,y1),...v1N(x1,y1)}
in the formula, S1(x1,y1) Is the first key pixel (x)1,y1) Corresponding pixel value, { v }11(x1,y1),v12(x1,y1),...v1N(x1,y1) Is the first key pixel point (x)1,y1) Corresponding pixel values of the neighborhood point of (a), for example: starting from the second frame, the pixel matrix S of the second frame may be updated according to the coordinate matrix of the first frame2A pixel matrix S2The pixel value of (1) and M of the key pixel point1(x, y) are differed to obtain D2(x, y), wherein the specific calculation formula is as follows:
D2(x,y)=S2i(x,y)-M1i(x,y)
in the formula, D2(x, y) is the difference between the key pixel (x, y) and all the sample values of the key pixel (x, y) in the sample set of the first frame, and D is the difference between the key pixel (x, y) and the sample values of the key pixel (x, y) in the sample set of the first frame2Comparing the difference value included in (x, y) with a first threshold value, and comparing D 2The difference in (x, y) that meets more than the first threshold is denoted as d2(x, y) according to d2The number in the (x, y) set can judge whether the key pixel point is a foreground point, and whether each key pixel point in all subsequent frames such as a third frame, a fourth frame and the like is a foreground point can be judged through sequential calculation.
In a specific embodiment of the present disclosure, the step S4 may further include a step S41, a step S42, and a step S43.
Step S41, judging whether the key pixel points are malicious shielding points according to whether the key pixel points are continuous multiframes serving as the foreground points or not, wherein the malicious shielding points are all shielded points in the continuous multiframes;
step S42, judging whether the current frame is maliciously occluded according to the number of the maliciously occluded points in the current frame;
and step S43, judging whether the monitoring scene is maliciously occluded according to whether the continuous multiple frames of the monitoring scene are maliciously occluded frames.
In this embodiment, a second frame number and a fourth threshold are set, the second frame number is initialized, whether continuous multiple frames of a monitoring scene are maliciously shielded frames or not is judged, if one frame is maliciously shielded frame, the second frame number is added by one, if not, the second frame number is reset, when the second frame number is greater than the fourth threshold, it can be judged that the monitoring scene is maliciously shielded or the camera is artificially rotated, then alarm information is sent, and after the alarm information is sent, the algorithm is reset.
In a specific embodiment of the present disclosure, the step S41 may further include a step S411, a step S412, and a step S413.
Step S411, establishing a first frame number and initializing;
step S412, judging whether the key pixel points are the foreground points under the condition of continuous multiple frames, wherein if the key pixel points in one frame are the foreground points, the first frame number is added by one, and if not, the first frame number is subtracted by one;
step S413, according to a comparison between the first frame number and a second threshold, determining whether the key pixel point is the malicious shielding point, where the second threshold includes determining that the key pixel point is a minimum frame number of the malicious shielding point.
In this embodiment, it is determined whether a key pixel is a foreground point in a plurality of consecutive frames, if yes, the key pixel is determined to be a maliciously occluded pixel, otherwise, it indicates that the key pixel may be a large object entering the monitoring scene, causing some key pixels to be temporarily occluded, and if the key pixel is accidentally occluded, the key pixel is not maliciously occluded in the plurality of consecutive frames, so a larger second threshold is set, and when the first frame number is greater than the second threshold, the key pixel is determined to be a maliciously occluded pixel, which can effectively distinguish whether the key pixel is a large object temporarily entering the monitoring scene, or maliciously occluded, or a camera is rotated, and setting the larger second threshold is also beneficial to solving the problem of false alarm caused by the large object entering the monitoring scene, the probability of false alarm is effectively reduced.
In a specific embodiment of the present disclosure, the step S42 may further include a step S421 and a step S422.
Step S421, calculating the number of key pixel points in the current frame, which are judged as malicious shielding points, and obtaining a calculation result;
step S422, according to the comparison between the calculation result and a third threshold, determining whether the current frame is the maliciously occluded frame, where the third threshold includes a number of minimum maliciously occluding points for determining that the current frame is the maliciously occluded frame.
In this embodiment, the total number of malicious shielding points in each frame can be obtained through calculation, and when the total number of the malicious shielding points is greater than half of the total number of the extracted key pixel points, that is, the area of the malicious shielding points is greater than half of the area of the key pixel points, it can be determined that the frame is a frame which is maliciously shielded.
Example 2
As shown in fig. 2, the present embodiment provides a device for determining malicious occlusion of a scene, where the device includes an obtaining module 901, a converting module 902, a first determining module 903, and a second determining module 904.
The obtaining module 901 is configured to obtain a coordinate matrix, where the coordinate matrix includes coordinate information of at least one key pixel included in a first frame of a monitoring scene, and the key pixel includes a pixel that obviously changes in pixel value when moving in any direction in the monitoring scene;
The conversion module 902 is configured to obtain a pixel matrix of each frame of the detection scene according to the coordinate matrix, where the pixel matrix includes a pixel value of a key pixel corresponding to each piece of coordinate information in the coordinate matrix in a current frame;
the first determining module 903 is configured to determine whether a key pixel in a current frame is a foreground point according to the pixel matrix of the first frame and the pixel matrix of the current frame, where the foreground point is a blocked key pixel in the current frame;
the second determining module 904 is configured to obtain a determination result of whether the monitoring scene is maliciously occluded according to a determination result of whether the key pixel point in the current frame is a foreground point.
The device in the embodiment can realize the function of rapidly and accurately judging whether the current monitoring scene is maliciously shielded or whether the camera is rotated. Whether take place maliciously shelter from and the surveillance camera head is by the artificial judgement device that provides a quick, reliable, precision height for the camera monitoring scene, this device can extensively be applicable to and be used for guaranteeing daily security protection demand among the various daily surveillance monitoring scenes.
In a specific embodiment of the present disclosure, the obtaining module 901 includes an extracting unit 9011 and a transforming unit 9012.
The extracting unit 9011 is configured to extract, according to a key pixel point detection model, coordinate information of at least one key pixel point included in the first frame, where the key pixel point detection model is used to extract coordinate information of a key pixel point in the monitoring scene;
the conversion unit 9012 is configured to send the coordinate information of the key pixel to a first function, so as to obtain the coordinate matrix.
In a specific embodiment of the present disclosure, the first determining module 903 includes a first constructing unit 9031, a first calculating unit 9032, and a first determining unit 9033.
The first constructing unit 9031 is configured to construct at least one sample set according to the pixel matrix of the first frame, where the sample set includes a pixel value of one key pixel in the pixel matrix of the first frame and a pixel value of a neighboring point of the key pixel;
the first calculating unit 9032 is configured to perform subtraction on a pixel value of a key pixel of the current frame and a sample set of the key pixel in a first frame to obtain first information, where the first information includes a difference between the pixel value of the key pixel of the current frame and a pixel value of a key pixel included in the sample set of the key pixel in the first frame and a pixel value of a neighboring point of the key pixel;
The first determining unit 9033 is configured to determine, according to the number of pixels whose difference values are greater than a first threshold, whether the key pixel is a foreground point, where the first threshold includes a threshold that determines whether a pixel value of the key pixel of the current frame is close to a pixel value of a key pixel included in a sample set corresponding to the key pixel and a pixel value of a neighboring point of the key pixel.
In a specific embodiment of the present disclosure, the second determining module 904 includes a second determining unit 9041, a third determining unit 9042, and a fourth determining unit 9043.
The second judging unit 9041 is configured to judge whether the key pixel point is a malicious occlusion point according to whether continuous multiple frames of the key pixel point are the foreground point, where the malicious occlusion point is a blocked point in the continuous multiple frames;
the third determining unit 9042 is configured to determine, according to the number of the malicious occlusion points included in the current frame, whether the current frame is a frame that is maliciously occluded;
the fourth determining unit 9043 is configured to determine whether the monitored scene is maliciously occluded according to whether consecutive multiple frames of the monitored scene are maliciously occluded frames.
In a specific embodiment of the present disclosure, the second judging unit 9041 includes a second constructing unit 90411, a first sub-judging unit 90412, and a second sub-judging unit 90413.
The second constructing unit 90411, configured to establish a first frame number and initialize the first frame number;
the first sub-determining unit 90412 is configured to determine whether the key pixel is the foreground point under the condition of consecutive multiple frames, where if a key pixel in a frame is the foreground point, the first frame number is added by one, and if not, the first frame number is subtracted by one;
the second sub-determining unit 90413 is configured to determine whether the key pixel is the malicious shielding point according to a comparison between the first frame number and a second threshold, where the second threshold includes a minimum frame number for determining that the key pixel is the malicious shielding point.
In a specific embodiment of the present disclosure, the third determining unit 9042 includes a second calculating unit 90421 and a third sub-determining unit 90422.
The second calculating unit 90421 is configured to calculate the number of the key pixel points included in the current frame that are determined as malicious shielding points, and obtain a calculation result;
The third sub-determining unit 90422 is configured to determine whether the current frame is the maliciously-occluded frame according to the comparison between the calculation result and a third threshold, where the third threshold includes a number of minimum maliciously-occluded points of the frame determined as maliciously-occluded by the current frame.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Example 3
Corresponding to the above method embodiment, the present disclosure further provides a device for determining malicious occlusion of a scene, where the device for determining malicious occlusion of a scene described below and the method for determining malicious occlusion of a scene described above may be referred to in a corresponding manner.
Fig. 3 is a block diagram illustrating a device 800 for determining malicious occlusion of a scene, according to an example embodiment. As shown in fig. 3, the apparatus 800 for determining malicious occlusion in a scene may include: a processor 801, a memory 802. The scene malicious occlusion determination device 800 may further include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communication component 805.
The processor 801 is configured to control the overall operation of the apparatus 800 for determining malicious scene occlusion, so as to complete all or part of the steps in the method for determining malicious scene occlusion. The memory 402 is used to store various types of data to support the operation of the device 800 for determining malicious occlusion of the scene, such as instructions for any application or method operating on the device 800 for determining malicious occlusion of the scene, and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving an external audio signal. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for performing wired or wireless communication between the scene malicious occlusion determination device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the Device 800 for determining the scene malicious occlusion may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the method for determining the scene malicious occlusion.
In another exemplary embodiment, a computer readable storage medium including program instructions is further provided, and the program instructions when executed by a processor implement the steps of the above method for determining malicious occlusion of a scene. For example, the computer readable storage medium may be the memory 802 including program instructions, which are executable by the processor 801 of the apparatus 800 for determining malicious occlusion of a scene, so as to complete the method for determining malicious occlusion of a scene.
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium, and the following readable storage medium and the above described method for determining malicious occlusion of a scene may be referred to correspondingly.
Example 4
A readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for determining malicious occlusion in a scene according to the foregoing method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The method for judging the malicious shielding of the scene is characterized by comprising the following steps:
acquiring a coordinate matrix, wherein the coordinate matrix comprises coordinate information of at least one key pixel point in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the obvious change of a pixel value when moving along any direction in the monitoring scene;
obtaining a pixel matrix of each frame of a monitoring scene according to the coordinate matrix, wherein the pixel matrix comprises a pixel value of a key pixel point corresponding to each piece of coordinate information in the coordinate matrix in a current frame;
judging whether key pixel points in the current frame are foreground points or not according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground points are the key pixel points which are shielded in the current frame;
and obtaining a judgment result of whether the monitoring scene is maliciously shielded or not according to the judgment result of whether the key pixel points in the current frame are the foreground points or not.
2. The method for judging the malicious scene occlusion according to claim 1, wherein the obtaining the coordinate matrix comprises:
extracting coordinate information of at least one key pixel point included in the first frame according to a key pixel point detection model, wherein the key pixel point detection model is used for extracting the coordinate information of the key pixel point in the monitoring scene;
And sending the coordinate information of the key pixel points to a first function to obtain the coordinate matrix.
3. The method for judging malicious scene occlusion according to claim 1, wherein the step of judging whether a key pixel point in a current frame is a foreground point according to the pixel matrix of the first frame and the pixel matrix of the current frame comprises:
constructing at least one sample set according to the pixel matrix of the first frame, wherein the sample set comprises the pixel value of one key pixel point in the pixel matrix of the first frame and the pixel values of the neighborhood points of the key pixel point;
subtracting the pixel value of the key pixel point of the current frame from a sample set of the key pixel point corresponding to a first frame to obtain first information, wherein the first information comprises the pixel value of the key pixel point of the current frame and the difference value between the pixel value of the key pixel point included in the sample set of the key pixel point corresponding to the first frame and the pixel value of a neighborhood point of the key pixel point;
and judging whether the key pixel point is a foreground point or not according to the number of the difference values of the pixel values included in the first information, wherein the first threshold comprises a threshold for judging whether the pixel value of the key pixel point of the current frame is close to the pixel value of the key pixel point included in the sample set corresponding to the key pixel point and the pixel value of the neighborhood point of the key pixel point.
4. The method for judging malicious scene occlusion according to claim 1, wherein the obtaining of the judgment result of whether the monitored scene is maliciously occluded according to the judgment result of whether the key pixel points in the current frame are foreground points comprises:
judging whether the key pixel points are malicious shielding points according to whether the key pixel points are continuous multiframes serving as the foreground points or not, wherein the malicious shielding points are all shielded points in the continuous multiframes;
judging whether the current frame is maliciously occluded according to the number of the maliciously occluded points in the current frame;
and judging whether the monitoring scene is maliciously shielded or not according to whether the continuous multiple frames of the monitoring scene are maliciously shielded frames or not.
5. Device is sheltered from to scene maliciousness, its characterized in that includes:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a coordinate matrix, the coordinate matrix comprises coordinate information of at least one key pixel point in a first frame of a monitoring scene, and the key pixel point comprises a pixel point which can cause the obvious change of a pixel value when moving along any direction in the monitoring scene;
the conversion module is used for obtaining a pixel matrix of each frame of a monitoring scene according to the coordinate matrix, and the pixel matrix comprises the pixel value of a key pixel point corresponding to each piece of coordinate information in the coordinate matrix in the current frame;
The first judgment module is used for judging whether the key pixel points in the current frame are foreground points according to the pixel matrix of the first frame and the pixel matrix of the current frame, wherein the foreground points are the key pixel points which are shielded in the current frame;
and the second judgment module is used for obtaining a judgment result of whether the monitoring scene is maliciously blocked according to a judgment result of whether the key pixel points in the current frame are foreground points.
6. The apparatus for determining malicious scene occlusion according to claim 5, wherein the obtaining module includes:
the extraction unit is used for extracting coordinate information of at least one key pixel point included in the first frame according to a key pixel point detection model, and the key pixel point detection model is used for extracting coordinate information of the key pixel point in the monitoring scene;
and the conversion unit is used for sending the coordinate information of the key pixel points to a first function to obtain the coordinate matrix.
7. The apparatus for determining scene malicious occlusion according to claim 5, wherein the first determining module comprises:
a first constructing unit, configured to construct at least one sample set according to the pixel matrix of the first frame, where the sample set includes a pixel value of one key pixel point in the pixel matrix of the first frame and a pixel value of a neighborhood point of the key pixel point;
A calculating unit, configured to perform a difference between a pixel value of a key pixel of the current frame and a sample set of the key pixel in a first frame to obtain first information, where the first information includes a difference between the pixel value of the key pixel of the current frame and a pixel value of a key pixel included in the sample set of the key pixel in the first frame and a pixel value of a neighboring point of the key pixel;
a first judging unit, configured to judge whether the key pixel is a foreground point according to the number of pixels whose difference values are greater than a first threshold, where the first threshold includes a threshold for judging whether a pixel value of the key pixel of the current frame is close to a pixel value of a key pixel included in a sample set corresponding to the key pixel and a pixel value of a neighboring point of the key pixel.
8. The apparatus for determining malicious scene occlusion according to claim 5, wherein the second determining module includes:
a second judging unit, configured to judge whether the key pixel point is a malicious occlusion point according to whether the key pixel point is a foreground point in a plurality of consecutive frames, where the malicious occlusion point is a blocked point in the plurality of consecutive frames;
A third judging unit, configured to judge whether the current frame is a maliciously occluded frame according to the number of the maliciously occluded points included in the current frame;
and the fourth judging unit is used for judging whether the monitoring scene is maliciously shielded according to whether continuous multiple frames of the monitoring scene are maliciously shielded frames.
9. Scene maliciousness shelters from judgement equipment, its characterized in that includes:
a memory for storing a computer program;
a processor, configured to implement the steps of the method for determining malicious occlusion of a scene according to any one of claims 1 to 4 when executing the computer program.
10. A readable storage medium, characterized by: the readable storage medium has a computer program stored thereon, and the computer program when executed by a processor implements the steps of the method for determining scene malicious occlusion as claimed in any one of claims 1 to 4.
CN202210448105.8A 2022-04-26 2022-04-26 Method, device and equipment for judging malicious shielding of scene and readable storage medium Pending CN114758300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210448105.8A CN114758300A (en) 2022-04-26 2022-04-26 Method, device and equipment for judging malicious shielding of scene and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210448105.8A CN114758300A (en) 2022-04-26 2022-04-26 Method, device and equipment for judging malicious shielding of scene and readable storage medium

Publications (1)

Publication Number Publication Date
CN114758300A true CN114758300A (en) 2022-07-15

Family

ID=82332529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210448105.8A Pending CN114758300A (en) 2022-04-26 2022-04-26 Method, device and equipment for judging malicious shielding of scene and readable storage medium

Country Status (1)

Country Link
CN (1) CN114758300A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114943938A (en) * 2022-07-26 2022-08-26 珠海视熙科技有限公司 Passenger flow statistical method, device, system and medium
CN115311217A (en) * 2022-07-26 2022-11-08 珠海视熙科技有限公司 Method, device, system and medium for monitoring camera lens shielding
CN117373099A (en) * 2023-12-04 2024-01-09 中运科技股份有限公司 Face lock camera shielding detection method, device, equipment and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114943938A (en) * 2022-07-26 2022-08-26 珠海视熙科技有限公司 Passenger flow statistical method, device, system and medium
CN115311217A (en) * 2022-07-26 2022-11-08 珠海视熙科技有限公司 Method, device, system and medium for monitoring camera lens shielding
CN115311217B (en) * 2022-07-26 2023-10-31 珠海视熙科技有限公司 Method, device, system and medium for monitoring shielding of camera lens
CN117373099A (en) * 2023-12-04 2024-01-09 中运科技股份有限公司 Face lock camera shielding detection method, device, equipment and medium
CN117373099B (en) * 2023-12-04 2024-02-13 中运科技股份有限公司 Face lock camera shielding detection method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN114758300A (en) Method, device and equipment for judging malicious shielding of scene and readable storage medium
CN110807377B (en) Target tracking and intrusion detection method, device and storage medium
CN109409238B (en) Obstacle detection method and device and terminal equipment
CN109815787B (en) Target identification method and device, storage medium and electronic equipment
EP3515065B1 (en) Method and system for improving construction of regions of interest
US10373015B2 (en) System and method of detecting moving objects
US8923552B2 (en) Object detection apparatus and object detection method
CN110647818A (en) Identification method and device for shielding target object
US20170024998A1 (en) Setting method and apparatus for surveillance system, and computer-readable recording medium
US9607210B2 (en) Video surveillance system and method for fraud detection
CN112927178A (en) Occlusion detection method, occlusion detection device, electronic device, and storage medium
JPH0779429A (en) Picture monitor equipment
JP2000156852A (en) Monitoring device
CN111369591A (en) Method, device and equipment for tracking moving object
KR20040018586A (en) Motion detecting device using face characteristics and monitoring system adapting it
JPH0514891A (en) Image monitor device
EP3543902A1 (en) Image processing apparatus and method and storage medium storing instructions
WO2014038924A2 (en) A method for producing a background model
CN115410153A (en) Door opening and closing state judging method and device, electronic terminal and storage medium
CN111582031B (en) Multi-model collaborative violence detection method and system based on neural network
JP2000341679A (en) Picture recognizing device and monitoring device
JP2002218443A (en) Intruding object detecting method for automatically determining threshold for intruding object detection and intruding object monitor
Mishra et al. Landslide detection system using computer vision approach and Raspberry Pi
Mhatre et al. Visual surveillance using absolute difference motion detection
JPH11203567A (en) Image processor for monitor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination