CN113379984B - Electronic nursing fence system - Google Patents

Electronic nursing fence system Download PDF

Info

Publication number
CN113379984B
CN113379984B CN202010117395.9A CN202010117395A CN113379984B CN 113379984 B CN113379984 B CN 113379984B CN 202010117395 A CN202010117395 A CN 202010117395A CN 113379984 B CN113379984 B CN 113379984B
Authority
CN
China
Prior art keywords
frame
motion
motion detection
detection frame
intersection
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.)
Active
Application number
CN202010117395.9A
Other languages
Chinese (zh)
Other versions
CN113379984A (en
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 Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor 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 Ingenic Semiconductor Co Ltd filed Critical Beijing Ingenic Semiconductor Co Ltd
Priority to CN202010117395.9A priority Critical patent/CN113379984B/en
Publication of CN113379984A publication Critical patent/CN113379984A/en
Application granted granted Critical
Publication of CN113379984B publication Critical patent/CN113379984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/02Mechanical actuation
    • G08B13/12Mechanical actuation by the breaking or disturbance of stretched cords or wires
    • G08B13/122Mechanical actuation by the breaking or disturbance of stretched cords or wires for a perimeter fence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/18Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
    • G08B13/189Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
    • G08B13/194Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
    • G08B13/196Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
    • G08B13/19602Image analysis to detect motion of the intruder, e.g. by frame subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30241Trajectory

Abstract

The invention provides an electronic nursing fence system, which comprises: the acquisition unit is used for acquiring real-time video stream data and transmitting the acquired data to the processing unit; the processing unit is used for processing the obtained data by a self-adaptive motion history processing method to obtain a current frame motion detection frame, making a mask on the whole frame and resetting a color value, and filling any polygonal area into white to ensure that the periphery of the circumscribed rectangle is black; the calculation unit is used for solving the intersection of the motion detection frame and the circumscribed rectangle of any polygon and counting the proportion of non-zero values of the intersection part in the whole motion detection frame; and the judging unit is used for judging the proportional value in the calculating unit to obtain whether the proportional value is in the interior of the periphery of any polygon.

Description

Electronic nursing fence system
Technical Field
The invention relates to the technical field of perimeter safety precaution, in particular to an electronic nursing fence system.
Background
With the development of science and technology, especially the development of technologies such as video technology, artificial intelligence, pattern recognition, etc., and the perimeter security protection and perimeter intrusion detection technology, it is also in force to come up. The use in nursing electronic fences is widely based on perimeter prevention technology. However, in the conventional perimeter intrusion and protection technologies, most perimeter protection technologies are effective for regular polygons, for example, the size of the intersection of the motion detection frame and the perimeter is directly used to determine whether the boundary is out of range, but the conventional perimeter intrusion and protection technologies fail to work for irregular polygons. Some adopt the moving direction of the object, but the accuracy is affected because the direction calculation itself is inaccurate. In addition, in the existing electronic nursing fence system, a frame difference method or a background method is adopted to calculate a motion pixel detection frame of a current frame, but a hollow phenomenon is generated due to the speed of motion amplitude or the motion pixel detection frame is filtered similarly to noise, so that the safety and the accuracy of the fence system are influenced.
Disclosure of Invention
In order to solve the above problems, the present invention is directed to: by the technical scheme, the perimeter precaution of any polygon is supported; the system adopts a self-adaptive motion history processing method, the motion speed is processed in a self-adaptive mode, and the motion history track is restored, so that the accuracy of the electronic nursing fence system is higher.
Specifically, the present invention provides an electronic nursing fence system, comprising:
the acquisition unit is used for acquiring real-time video stream data and transmitting the acquired data to the processing unit;
the processing unit is used for processing the obtained data through a self-adaptive motion history processing method to obtain a current frame motion detection frame, making a mask on the whole frame, resetting a color value, and filling any polygonal area into white to enable the periphery of the circumscribed rectangle to be black;
the calculation unit is used for solving the intersection of the motion detection frame and any polygon and counting the proportion of the intersection part in the whole motion detection frame;
and the judging unit is used for judging the proportion value in the calculating unit to obtain whether the proportion value is in the interior of any perimeter.
Thus, the application has the advantages that: through the electron nurse rail system of this application can solve the problem that arbitrary irregular polygon perimeter was taken precautions against, easy maintenance, adaptability is stronger. Meanwhile, the problem that the hollow phenomenon is generated or the filter is similar to noise is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention.
FIG. 1 is a schematic block diagram of the system of the present invention.
Fig. 2 is a schematic flow diagram of a method to which the system of the present invention relates.
Detailed Description
In order that the technical contents and advantages of the present invention can be more clearly understood, the present invention will now be described in further detail with reference to the accompanying drawings.
Furthermore, technical terms in the prior art include:
a nursing electronic fence: an object approaches the fence from inside to outside or crosses the fence from inside to outside in a small area, an alarm signal is sent out, the situation of baby nursing is suitable, and the small area crossing can be understood that only one small foot protrudes out of the fence.
Short history retention value: and re-assigning the moving pixel point of the current frame to be a smaller number, wherein the value of the smaller number is decreased if the moving pixel point does not move in each frame later until 0 disappears. It is simply understood that the number of frames reserved for moving pixels is relatively short.
Long history retention value: and re-assigning the moving pixel points of the current frame to be a larger number, wherein the value of the larger number is decreased if the moving pixel points do not move in each frame later until 0 disappears. It is simply understood that the number of frames reserved for a motion pixel is relatively long.
MASK is a MASK, also called MASK.
Specifically, as shown in fig. 1, the present invention relates to an electronic nursing fence system, comprising:
an acquisition unit, for example, a camera, for acquiring real-time video stream data and transmitting the acquired data to the processing unit;
the processing unit is used for processing the obtained data by a self-adaptive motion history processing method to obtain a current frame motion detection frame, making a mask on the whole frame and resetting a color value, and filling any polygonal area into white to ensure that the periphery of the circumscribed rectangle is black;
the calculation unit is used for solving the intersection of the motion detection frame and any polygon and counting the proportion of the intersection part in the whole motion detection frame;
and the judging unit is used for judging the proportion value in the calculating unit to obtain whether the proportion value is in the interior of any perimeter.
The whole frame refers to a mask pattern having a size equal to that of the current frame image, for example, the resolution is 640 × 360, and the whole mask pattern is set to an initial value of 0 in the first step. The motion detection needs to perform region detection on the circumscribed rectangles of a plurality of arbitrary polygons on the current frame image, for example, if there are N arbitrary polygons, there are N regions to perform motion detection, and the motion detection frame on the current frame and the arbitrary polygon on the mask image are circumscribed to obtain an intersection.
The self-adaptive motion history processing method of the processing unit further comprises the steps of obtaining motion pixel points of the current frame through two-frame difference or three-frame difference, and obtaining a motion detection frame of the current frame through a contour extraction method according to the reserved motion history pixel points.
The contour extraction method is to binarize the image, and 1 can be set as a foreground image and 0 can be set as a background image in the binary image.
In the processing process of the processing unit, if a current frame has moving pixels, the moving speed of an object is pre-judged according to the size of a moving detection frame of a previous frame, if the current frame is within an N frame (for example, N is 3-6), the height and width of the object are greater than a threshold (for example, the threshold 40 and can be adjusted according to sensitivity), in order to avoid long trailing, the position of the object is a short history reserved value, and if the height and width of the object is less than the threshold, in order to prevent the target from being too small or from missing detection caused by the situation that the target vertically faces a camera, the position of a moving pixel point is a long history reserved value;
if the current frame has no motion pixels, but has motion history pixels remaining, the corresponding motion history pixels are decremented by 1 (e.g., the initial value of the short history retention value is set to 6, and the initial value of the long history retention value is set to 10).
In the calculation unit, the intersection of the motion detection frame and any polygon is in an irregular shape, the intersection part is white, and the rest part is black.
The color value of white RGB is 255, and the color value of black RGB is 0.
The proportion of the statistic intersection part in the whole motion detection frame is the proportion of the number of the non-zero points of the statistic intersection part in the whole motion detection frame.
The method for the application in the system is completed by the following steps:
and A, obtaining an object motion detection frame by a self-adaptive motion history processing method.
The specific method comprises the following steps:
obtaining a motion pixel point of the current frame through two-frame difference or three-frame difference, and obtaining a motion detection frame of the current frame through a contour extraction method according to the reserved motion history pixel point;
in particular:
if the current frame has moving pixels, the moving speed of the object is pre-judged according to the size of the moving detection frame of the previous frame, if the height and width of the object in the N frame are larger than a threshold value, in order to avoid Long trailing, the position of the object is a Short history reserved value Short _ hst _ val, and if the height and width of the object are smaller than the threshold value, in order to prevent the target from being too small or from missing detection caused by the condition that the target vertically faces the camera, the position of the moving pixel point is a Long history reserved value Long _ hst _ val.
If the current frame has no motion pixels but has motion history pixels reserved, the corresponding motion history pixels are subtracted by 1.
And B, designing the electronic fence.
1, making a large MASK for the whole frame and clearing.
And 2, filling any polygonal area with white, so that the periphery of the circumscribed rectangle is black.
And 3, calculating the intersection of the motion detection frame and any polygon, wherein the intersection is in an irregular shape, the intersection part is white, namely 255, and the rest part is black and 0, so that whether the intersection part is in the interior of any perimeter can be obtained by counting the proportion of the number of non-zero points of the intersection part in the whole motion detection frame.
Wherein, for example, a three-frame difference method is used for detecting a moving target in a region to obtain a foreground image;
specifically, an interested image area and a perimeter precaution moving target are established by a real-time video stream captured in an intrusion detection environment, and a foreground image is obtained. The three-frame difference method comprises the following steps:
h1 passing through two frame difference D n (x,y)=|f n (x,y)-f n-1 (x, y) | and D n+1 (x,y)=|f n+1 (x,y)-f n (x, y) | gives rise to adjacent difference images, where f n-1 (x, y) is the (n-1) th frame image, f n (x, y) is the nth frame image, f n+1 (x, y) is the n +1 th frame image, n>1, and n is an integer;
wherein, D is n (x, y) is the nth frame image f n (x, y) and the (n-1) th frame image f n-1 Two frame difference of (x, y), said D n+1 (x, y) is the (n + 1) th frame image f n+1 (x, y) and nth frame image f n Two frame difference of (x, y).
H2, obtaining D through a preset threshold value n (x, y) and D n+1 (x, y) binarizing to obtain a binary image d n (x, y) and d n+1 (x,y);
Wherein, d is n (x, y) is the difference D between two frames n (x, y) binarizing to obtain a binary image, wherein d n+1 (x, y) is the difference D between two frames n+1 (x, y) binarizing to obtain a binary image.
H3, passing formula
Figure BDA0002391908660000061
For the binary image d obtained above n (x, y) and d n+1 (x, y) AND operation is carried out to obtain a foreground image Mn (x, y).
And after the foreground image is obtained, eliminating the void phenomenon according to a historical motion method to obtain a complete motion target. And obtaining a current frame motion detection frame by a contour extraction method according to the reserved motion history pixel points. And designing an electronic fence system according to the motion detection frame.
As shown in fig. 2, the method involved in the electronic nursing fence system can be summarized as including the following steps:
s1, obtaining a current frame motion detection frame by a self-adaptive motion history processing method;
s2, making a mask on the whole frame, and clearing the color value;
s3, filling any polygonal area with white color to make the periphery of the circumscribed rectangle black;
and S4, calculating the intersection of the motion detection frame and any polygon, and counting the proportion of the non-zero value of the intersection part in the whole motion detection frame to obtain whether the non-zero value is in the interior of any perimeter.
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 to the embodiment of the present invention 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.

Claims (4)

1. An electronic nursing fence system, comprising:
the acquisition unit is used for acquiring real-time video stream data and transmitting the acquired data to the processing unit;
the processing unit is used for processing the obtained data through a self-adaptive motion history processing method to obtain a current frame motion detection frame, making a mask on the whole frame, resetting a color value, and filling any polygonal area into white to enable the periphery of the circumscribed rectangle to be black; the self-adaptive motion history processing method of the processing unit is to obtain motion pixel points of a current frame through two-frame difference or three-frame difference, and obtain a motion detection frame of the current frame through a contour extraction method according to the reserved motion history pixel points; the contour extraction method is to binarize the image, wherein 1 is set as a foreground and 0 is set as a background in the binary image; in the processing process of the processing unit, if a current frame has moving pixels, the moving speed of an object is pre-judged according to the size of a moving detection frame of the previous frame, if the height and width of the object in the N frames are larger than a threshold value, the position of the object is set as a short history reserved value to avoid long trailing, and if the height and width of the object are smaller than the threshold value, the position of a moving pixel point is set as a long history reserved value to prevent the object from being missed for detection caused by the situation that the object is too small or vertically faces a camera; if the current frame has no motion pixel but has a reserved motion history pixel, subtracting 1 from the corresponding motion history pixel;
the calculation unit is used for solving the intersection of the motion detection frame and the circumscribed rectangle of any polygon and counting the proportion of the intersection part in the whole motion detection frame;
and the judging unit is used for judging the proportion value in the calculating unit to obtain whether the proportion value is in the periphery.
2. The system of claim 1, wherein the computing unit is configured to determine the intersection of the motion detection box and any polygon as an irregular shape, wherein the intersection is white and the remaining part is black.
3. The system of claim 2, wherein the RGB color values of white are 255 and the RGB color values of black are 0.
4. The system of claim 1, wherein the ratio of the number of non-zero values of the statistical intersection portion to the total motion detection frame is the ratio of the number of non-zero values of the statistical intersection portion to the total motion detection frame.
CN202010117395.9A 2020-02-25 2020-02-25 Electronic nursing fence system Active CN113379984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010117395.9A CN113379984B (en) 2020-02-25 2020-02-25 Electronic nursing fence system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010117395.9A CN113379984B (en) 2020-02-25 2020-02-25 Electronic nursing fence system

Publications (2)

Publication Number Publication Date
CN113379984A CN113379984A (en) 2021-09-10
CN113379984B true CN113379984B (en) 2022-09-23

Family

ID=77569265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010117395.9A Active CN113379984B (en) 2020-02-25 2020-02-25 Electronic nursing fence system

Country Status (1)

Country Link
CN (1) CN113379984B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1111785A (en) * 1993-10-18 1995-11-15 国际商业机器公司 Tape position indicator for multi-track serpentine recording
WO1999059116A1 (en) * 1998-05-08 1999-11-18 Primary Image Limited Method and apparatus for detecting motion across a surveillance area
CN104041005A (en) * 2011-09-30 2014-09-10 富士胶片株式会社 Tracking-frame initial-position setting device and method of controlling operation of same
JP2015138319A (en) * 2014-01-21 2015-07-30 三菱電機株式会社 Object detection device, object detection method, and object detection program
CN105575027A (en) * 2014-10-09 2016-05-11 北京君正集成电路股份有限公司 Invasion and perimeter defense method and invasion and perimeter defense device
CN105931267A (en) * 2016-04-15 2016-09-07 华南理工大学 Moving object detection and tracking method based on improved ViBe algorithm
CN108764338A (en) * 2018-05-28 2018-11-06 上海应用技术大学 A kind of pedestrian tracking algorithm applied to video analysis
CN109068099A (en) * 2018-09-05 2018-12-21 济南大学 Virtual electronic fence monitoring method and system based on video monitoring
JP2019053625A (en) * 2017-09-17 2019-04-04 国立大学法人岩手大学 Moving object detection device, and moving object detection method
CN109903503A (en) * 2019-04-16 2019-06-18 上海天诚比集科技有限公司 A kind of detection method in video monitoring object intrusion detection region
CN110766899A (en) * 2019-11-11 2020-02-07 四川航天神坤科技有限公司 Method and system for enhancing electronic fence monitoring early warning in virtual environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2484531C2 (en) * 2009-01-22 2013-06-10 Государственное научное учреждение центральный научно-исследовательский и опытно-конструкторский институт робототехники и технической кибернетики (ЦНИИ РТК) Apparatus for processing video information of security alarm system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1111785A (en) * 1993-10-18 1995-11-15 国际商业机器公司 Tape position indicator for multi-track serpentine recording
WO1999059116A1 (en) * 1998-05-08 1999-11-18 Primary Image Limited Method and apparatus for detecting motion across a surveillance area
CN104041005A (en) * 2011-09-30 2014-09-10 富士胶片株式会社 Tracking-frame initial-position setting device and method of controlling operation of same
JP2015138319A (en) * 2014-01-21 2015-07-30 三菱電機株式会社 Object detection device, object detection method, and object detection program
CN105575027A (en) * 2014-10-09 2016-05-11 北京君正集成电路股份有限公司 Invasion and perimeter defense method and invasion and perimeter defense device
CN105931267A (en) * 2016-04-15 2016-09-07 华南理工大学 Moving object detection and tracking method based on improved ViBe algorithm
JP2019053625A (en) * 2017-09-17 2019-04-04 国立大学法人岩手大学 Moving object detection device, and moving object detection method
CN108764338A (en) * 2018-05-28 2018-11-06 上海应用技术大学 A kind of pedestrian tracking algorithm applied to video analysis
CN109068099A (en) * 2018-09-05 2018-12-21 济南大学 Virtual electronic fence monitoring method and system based on video monitoring
CN109903503A (en) * 2019-04-16 2019-06-18 上海天诚比集科技有限公司 A kind of detection method in video monitoring object intrusion detection region
CN110766899A (en) * 2019-11-11 2020-02-07 四川航天神坤科技有限公司 Method and system for enhancing electronic fence monitoring early warning in virtual environment

Also Published As

Publication number Publication date
CN113379984A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN106067023B (en) Container number and truck number identification system and method based on image processing
KR101717613B1 (en) The moving vehicle detection system using an object tracking algorithm based on edge information, and method thereof
WO2022027931A1 (en) Video image-based foreground detection method for vehicle in motion
CN101266132B (en) Running disorder detection method based on MPFG movement vector
JP3545506B2 (en) Specific color area extraction method and specific color area removal method
JP4156084B2 (en) Moving object tracking device
CN108022249A (en) A kind of remote sensing video satellite moving vehicle target region of interest extraction method
CN112927262B (en) Camera lens shielding detection method and system based on video
JP2010204860A (en) Video-monitoring system
CN110807392A (en) Encoding control method and related device
CN113379984B (en) Electronic nursing fence system
CN113379987B (en) Design method of nursing electronic fence module
JPS62267889A (en) Character reading system
CN113379985B (en) Nursing electronic fence alarm device
CN109547777B (en) Method for rapidly detecting video noise of complex scene
CN111242051B (en) Vehicle identification optimization method, device and storage medium
Bangare et al. Implementation of abandoned object detection in real time environment
CN115187588B (en) Foreign matter detection method, foreign matter detection device, storage medium, and electronic apparatus
JP4224328B2 (en) Car number recognition device
Zheng et al. An automatic moving object detection algorithm for video surveillance applications
CN108182400B (en) Dynamic display identification method and system for nixie tube
CN113936242B (en) Video image interference detection method, system, device and medium
JP2667973B2 (en) Mobile monitoring device
Alcantarilla et al. Automatic daytime road traffic control and monitoring system
KR20030018487A (en) Method and apparatus for counting the number of entering people at the gate using image

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
GR01 Patent grant
GR01 Patent grant