CN110796032A - Video fence and early warning method based on human posture assessment - Google Patents
Video fence and early warning method based on human posture assessment Download PDFInfo
- Publication number
- CN110796032A CN110796032A CN201910965361.2A CN201910965361A CN110796032A CN 110796032 A CN110796032 A CN 110796032A CN 201910965361 A CN201910965361 A CN 201910965361A CN 110796032 A CN110796032 A CN 110796032A
- Authority
- CN
- China
- Prior art keywords
- ankle
- key point
- forbidden area
- video
- early warning
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/41—Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Evolutionary Computation (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Image Analysis (AREA)
Abstract
本发明涉及一种基于人体姿态评估的视频围栏及预警方法,预警方法包括以下步骤:S1、设定视频拍摄范围,并在所述拍摄范围内划定禁入区域;S2、获取拍摄范围内人员的脚踝关键点的坐标信息及其置信度;S3、判断获取的脚踝坐标是否在禁入区域内,如发现有脚踝关键点在禁入区域内,则转到步骤S4;S4、发送预警信号。基于人体姿态评估的视频围栏通过机器视觉识别技术,能够定位到人的脚踝坐标,更加准确的判断人员是否进入到了视频中的指定区域,能在人体脚之外的小部分被遮挡时,识别人是否进入指定的禁入区域。
The present invention relates to a video fence and an early warning method based on human body posture assessment. The early warning method includes the following steps: S1, setting a video shooting range, and delimiting a forbidden area within the shooting range; S2, acquiring persons within the shooting range The coordinate information of the ankle key point and its confidence level; S3, determine whether the obtained ankle coordinates are in the forbidden area, if it is found that there is an ankle key point in the forbidden area, go to step S4; S4, send an early warning signal. The video fence based on human posture assessment can locate the coordinates of the person's ankle through machine vision recognition technology, more accurately determine whether the person has entered the designated area in the video, and can recognize the person when a small part other than the human foot is blocked. Whether to enter the designated forbidden area.
Description
技术领域technical field
本发明涉及机器视觉识别技术领域,涉及一种基于人体姿态评估的视频围栏及预警方法。The invention relates to the technical field of machine vision recognition, and relates to a video fence and an early warning method based on human body posture assessment.
背景技术Background technique
现在安防摄像头运用广泛,特别是工地这类现场环境复杂,人员众多的场景。Nowadays, security cameras are widely used, especially in scenes such as construction sites where the site environment is complex and there are many people.
工地中会有一些区域,由于堆放危险物品,或者区域内极易发生意外,限定了进入人员身份或者不许任何人进入。这就需要安防监控摄像头全天24小时监控特定的区域,并自主的判断是否有人入侵该区域。There will be some areas in the construction site. Due to the stacking of dangerous objects, or accidents are prone to occur in the area, the identity of the entering personnel is limited or no one is allowed to enter. This requires security surveillance cameras to monitor a specific area 24 hours a day and independently determine whether someone invades the area.
现有的视频识别技术大多采用一个矩形框框选出人在二维空间内的位置。Most of the existing video recognition technologies use a rectangular frame to select the position of a person in a two-dimensional space.
传统的方法识别了整个人体在图像上的位置,在图像上用矩形框框选出来,由于图像是在二维平面反映了一个三维的空间,导致人像在图中与框选区域重叠,当人体的上半身与指定区域重合时,会误判有人进入该区域,但其实人的脚并没有站在指定区域内。The traditional method identifies the position of the entire human body on the image, and selects it with a rectangular frame on the image. Since the image reflects a three-dimensional space on a two-dimensional plane, the portrait overlaps with the frame selection area in the figure. When the upper body overlaps with the designated area, it will be misjudged that someone enters the area, but the person's feet are not actually standing in the designated area.
发明内容SUMMARY OF THE INVENTION
本发明要解决的技术问题在于,针对现有技术的上述判断不准确的缺陷,提供一种基于人体姿态评估的视频围栏及预警方法。The technical problem to be solved by the present invention is to provide a video fence and an early warning method based on human body posture evaluation, aiming at the above-mentioned inaccurate judgment defect of the prior art.
本发明解决其技术问题所采用的技术方案是:构造一种基于人体姿态评估的视频围栏预警方法,包括以下步骤:The technical solution adopted by the present invention to solve the technical problem is: constructing a video fence early warning method based on human body posture assessment, comprising the following steps:
S1、设定视频拍摄范围,并在所述拍摄范围内划定禁入区域;S1. Set a video shooting range, and delimit a forbidden area within the shooting range;
S2、获取拍摄范围内人员的脚踝关键点的坐标信息及其置信度;S2. Obtain the coordinate information and the confidence level of the key points of the ankle of the person within the shooting range;
S3、判断获取的脚踝坐标是否在禁入区域内,如发现有脚踝关键点在禁入区域内,则转到步骤S4;S3, determine whether the obtained ankle coordinates are in the forbidden area, and if it is found that there is a key point of the ankle in the forbidden area, go to step S4;
S4、发送预警信号。S4. Send an early warning signal.
优选地,所述步骤S2中,基于深度学习的卷积神经网络获取视频每帧图像的信息,结合热力图分析以及亲和力分析得到脚踝关键点的所述坐标信息和置信度。Preferably, in the step S2, the convolutional neural network based on deep learning obtains the information of each frame of the video, and combines the heat map analysis and the affinity analysis to obtain the coordinate information and confidence of the ankle key points.
优选地,所述步骤S2中,如果所述拍摄范围中存在人员,可以得到图像中全部的人体骨骼关节关键点位于所述拍摄范围对应的二维图像上的坐标信息以及骨骼关节关键点的置信度,选取其中人体脚踝关键点的坐标信息以及其置信度。Preferably, in the step S2, if there is a person in the shooting range, the coordinate information of all the key points of human skeleton joints in the image on the two-dimensional image corresponding to the shooting range and the confidence of the key points of the skeleton joints can be obtained degree, select the coordinate information of the key points of the human ankle and its confidence.
优选地,所述步骤S1中,所述禁入区域为在所述拍摄范围获取的画面上划定,包括以下步骤,Preferably, in the step S1, the forbidden area is delineated on the screen obtained from the shooting range, including the following steps:
抽取图像帧,手动框选出图像中至少一个多边形框设定为禁入区域,将每一多边形框的顶点坐标以一个集合P={[[x1,y1],[x2,y2],...,[xn,yn]],[[x’1,y’1],[x’2,y’2],...,[x’n,y’n]],...}的形式存储,其中x,y分别为多边形顶点的横纵坐标,每个多边形框由n个顶点组成,顶点之间按集合中排列顺序依次连接,形成多边形框,框内为禁入区域。Extract the image frame, manually select at least one polygon frame in the image and set it as a forbidden area, and set the vertex coordinates of each polygon frame as a set P={[[x1,y1],[x2,y2],.. .,[xn,yn]],[[x'1,y'1],[x'2,y'2],...,[x'n,y'n]],...} Form storage, where x and y are the horizontal and vertical coordinates of the polygon vertices respectively, each polygon frame is composed of n vertices, and the vertices are connected in sequence in the order of the set to form a polygon frame, and the inside of the frame is the forbidden area.
优选地,所述步骤S3中,以待判断的脚踝关键点为端点,沿水平方向发出一条射线,若射线与一多边形框的交点数为偶数,待判断的所述脚踝关键点在禁入区域外,若射线与一多边形框的交点数为奇数,待判断的所述脚踝关键点在禁入区域内。Preferably, in the step S3, the key point of the ankle to be judged is taken as the endpoint, and a ray is emitted along the horizontal direction. If the number of intersections between the ray and a polygonal frame is an even number, the key point of the ankle to be judged is in the forbidden area. In addition, if the number of intersections between the ray and a polygon frame is odd, the ankle key point to be determined is in the forbidden area.
优选地,所述步骤S4中,还包括上传预警信息到云端,显示所述拍摄范围实时的图像。Preferably, the step S4 further includes uploading the warning information to the cloud, and displaying the real-time image of the shooting range.
一种基于人体姿态评估的视频围栏,包括:A video fence based on human pose assessment, including:
区域划定模块,用于根据视频拍摄范围,在所述拍摄范围内划定禁入区域;an area delimitation module, used for delimiting a forbidden area within the video shooting range according to the video shooting range;
识别模块,用于获取拍摄范围内人员的脚踝关键点的坐标信息及其置信度;The identification module is used to obtain the coordinate information and confidence level of the key points of the ankle of the person within the shooting range;
判断模块,用于判断获取的脚踝坐标是否在禁入区域内,以及A judgment module for judging whether the obtained ankle coordinates are within the forbidden area, and
预警模块,用于在所述判断模块发现有脚踝关键点在禁入区域内时,发送预警信号。An early warning module is used to send an early warning signal when the judgment module finds that a key point of the ankle is in the forbidden area.
优选地,所述识别模块基于深度学习的卷积神经网络获取视频每帧图像的信息,结合热力图分析以及亲和力分析得到脚踝关键点的所述坐标信息和置信度。Preferably, the identification module obtains the information of each frame of the video based on a deep learning convolutional neural network, and obtains the coordinate information and confidence of the ankle key points in combination with heat map analysis and affinity analysis.
优选地,所述区域划定模块从拍摄的视频中抽取图像帧,在图像中手动框选出至少一个多边形框设定为禁入区域,且生成所述禁入区域的坐标信息;Preferably, the area delineation module extracts image frames from the captured video, manually selects at least one polygonal frame in the image and sets it as a forbidden area, and generates coordinate information of the forbidden area;
所述判断模块以待判断的脚踝关键点为端点,沿水平方向发出一条射线,若射线与一多边形框的交点数为偶数,待判断的所述脚踝关键点在禁入区域外,若射线与一多边形框的交点数为奇数,待判断的所述脚踝关键点在禁入区域内。The judging module takes the key point of the ankle to be judged as the endpoint, and sends out a ray along the horizontal direction. If the number of intersections between the ray and a polygonal frame is an even number, the key point of the ankle to be judged is outside the forbidden area. The number of intersection points of a polygon frame is an odd number, and the ankle key point to be determined is within the forbidden area.
优选地,在所述判断模块发现有脚踝关键点在禁入区域内,并停留超过特定时间时,所述预警模块发送人体脚踝关键点在图像上的坐标信息、脚踝关键点出现在禁入区域内的时间,以及脚踝关键点出现在禁入区域内时拍摄到的图像到云端,并发出预警信号。Preferably, when the judgment module finds that the key point of the ankle is in the forbidden area and stays for more than a certain time, the early warning module sends the coordinate information of the key point of the human ankle on the image, and the key point of the ankle appears in the forbidden area time, and the image taken when the key point of the ankle appears in the forbidden area is sent to the cloud, and an early warning signal is issued.
实施本发明的基于人体姿态评估的视频围栏及预警方法,具有以下有益效果:基于人体姿态评估的视频围栏通过机器视觉识别技术,能够定位到人的脚踝坐标,更加准确的判断人员是否进入到了视频中的指定区域,能在人体脚之外的小部分被遮挡时,识别人是否进入指定的禁入区域。Implementing the video fence and early warning method based on human body posture assessment of the present invention has the following beneficial effects: the video fence based on human body posture assessment can locate the coordinates of the person's ankle through machine vision recognition technology, and more accurately judge whether the person has entered the video. The designated area in the device can identify whether a person enters the designated forbidden area when a small part other than the human foot is blocked.
附图说明Description of drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是本发明实施例中的基于人体姿态评估的视频围栏的模块结构示意图;Fig. 1 is the module structure schematic diagram of the video fence based on human body posture assessment in the embodiment of the present invention;
图2是禁入区域内有人员的脚踝出现时的监控示意图;Fig. 2 is the monitoring schematic diagram when the ankle of a person appears in the forbidden area;
图3是提取到人体脚踝关键点、膝盖关键点时的监控示意图;Figure 3 is a schematic diagram of monitoring when extracting key points of human ankle and knee;
图4是推理得出人体骨骼、并提取脚踝关键点时的监控示意图;Figure 4 is a schematic diagram of monitoring when the human skeleton is inferred and the key points of the ankle are extracted;
图5是采用射线法判断禁入区域内是否有脚踝关键点时的示意图;Fig. 5 is the schematic diagram when the ray method is used to judge whether there is an ankle key point in the forbidden area;
图6是基于人体姿态评估的视频围栏预警方法的流程示意图;6 is a schematic flowchart of a video fence early warning method based on human posture assessment;
图7是框选禁入区域时的示意图。FIG. 7 is a schematic diagram when a forbidden area is framed.
具体实施方式Detailed ways
为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
如图1所示,本发明一个优选实施例中的基于人体姿态评估的视频围栏包括区域划定模块1、识别模块2、判断模块3、预警模块4。As shown in FIG. 1 , a video fence based on human posture assessment in a preferred embodiment of the present invention includes a region delimitation module 1 , an identification module 2 , a judgment module 3 , and an early warning module 4 .
结合图2所示,区域划定模块1用于根据视频拍摄范围A,在所述拍摄范围A内划定禁入区域B,可以根据监控需要,调整拍摄方向、拍摄角度、焦距等,预先设定好视频拍摄范围A,同时,根据监控需要,在视频拍摄范围A内划定禁入区域B。As shown in FIG. 2 , the area delimitation module 1 is used to demarcate the forbidden area B within the video shooting range A according to the video shooting range A, and the shooting direction, shooting angle, focal length, etc. can be adjusted according to the monitoring needs, and preset Determine the video shooting range A, and at the same time, according to the monitoring needs, delimit the forbidden area B within the video shooting range A.
识别模块2用于获取拍摄范围A内人员的脚踝关键点C的坐标信息及其置信度,作为判断人员是否进入禁入区域B的判断依据,脚踝的坐标位置容易判断,且能准确的反映人员的站立位置。The identification module 2 is used to obtain the coordinate information of the key point C of the ankle of the person in the shooting range A and its confidence level, as a basis for judging whether the person enters the forbidden area B, the coordinate position of the ankle is easy to judge, and can accurately reflect the personnel standing position.
判断模块3用于根据脚踝关键点C的坐标信息及置信度,判断获取的脚踝坐标是否在禁入区域B内。The judgment module 3 is used for judging whether the obtained ankle coordinates are within the forbidden area B according to the coordinate information and the confidence degree of the ankle key point C.
预警模块4用于在所述判断模块3发现有脚踝关键点C在禁入区域B内时,发送预警信号,提醒采取应对措施。The early warning module 4 is configured to send an early warning signal to remind to take countermeasures when the judgment module 3 finds that the ankle key point C is in the forbidden area B.
基于人体姿态评估的视频围栏通过机器视觉识别技术,能够定位到人的脚踝坐标,更加准确的判断人员是否进入到了视频中的指定区域,能在人体脚之外的小部分被遮挡时,识别人是否进入指定的禁入区域B。The video fence based on human posture assessment can locate the coordinates of the person's ankle through machine vision recognition technology, and more accurately judge whether the person has entered the designated area in the video, and can recognize the person when a small part other than the human foot is blocked. Whether to enter the designated forbidden area B.
区域划定模块1根据摄像头拍摄范围A采集到的图像,在图像中手动框选画出至少一个多边形框设定为禁入区域B,并把禁入区域B在图像上的二维坐标信息传给判断模块3,多边形框的数量不定。The area delineation module 1 manually selects and draws at least one polygonal frame in the image according to the image captured by the camera shooting range A to set it as the forbidden area B, and transmits the two-dimensional coordinate information of the forbidden area B on the image. For the judgment module 3, the number of polygonal boxes is not fixed.
在其他实施例中,也可采用图像识别技术,将在地面划定的堆放有危险物品及有安全隐患的区域自动划定为禁入区域,地面划定的区域可以为画有边框的区域,也可为涂有特殊颜色的区域。In other embodiments, image recognition technology can also be used to automatically delineate the area delineated on the ground where dangerous objects are stacked and there are potential safety hazards as a no-entry area, and the area delimited on the ground can be an area with a frame drawn. Also available in areas painted with special colors.
识别模块2基于深度学习的卷积神经网络获取视频每帧图像的信息,识别图像中是否有人员出现,结合热力图分析以及亲和力分析得到出现人员的脚踝关键点C的所述坐标信息和置信度。The recognition module 2 obtains the information of each frame of the video based on the convolutional neural network of deep learning, identifies whether there is a person in the image, and obtains the coordinate information and confidence of the key point C of the ankle of the person in combination with heat map analysis and affinity analysis. .
识别模块2首先对图像进行预处理,如图像尺寸缩放等,然后利用图像识别技术,识别图像中指定区域内是否有人,其中我们使用了识别人体脚踝关键点C位置的方案,识别图中人的脚踝。Recognition module 2 first preprocesses the image, such as image size scaling, etc., and then uses image recognition technology to identify whether there is a person in the specified area of the image. Among them, we use the scheme of identifying the position of the key point C of the human ankle to identify the person in the picture. ankle.
识别过程利用到了人体姿态估计的方法,首先用一个卷积神经网络(Convolutional Neural Network,CNN)模型提取图像的信息,本方法中选取了MobileNet_v2网络模型(一种轻量化卷积神经网络)。The recognition process uses the method of human pose estimation. First, a Convolutional Neural Network (CNN) model is used to extract the information of the image. In this method, the MobileNet_v2 network model (a lightweight convolutional neural network) is selected.
MobileNet_v2网络模型对比与现有的多种模型,如Inception,VGG,ResNet(Residual Neural Network),MobileNet系列网络模型运用了深度可分离卷积(Depth-wise Separable Convolution),大大减少了参数量。这使得我们处理图片需要的计算量大大减少,我们对视频中某一帧的分析更加快,导致我们识别视频结果的帧率不会太低,识别过程更具有实时性。The MobileNet_v2 network model is compared with existing models, such as Inception, VGG, ResNet (Residual Neural Network), and MobileNet series network models use Depth-wise Separable Convolution, which greatly reduces the amount of parameters. This greatly reduces the amount of computation we need to process pictures, and we analyze a frame in the video faster, so that the frame rate of our video recognition results will not be too low, and the recognition process is more real-time.
如图3所示,通过MobileNet_v2模型,我们可以获得一组特征图,分到两个CNN网络模型,分别提取到人体脚踝关键点C、膝盖关键点D位置的置信度图(Part ConfidenceMaps),和人体脚踝关键点C、膝盖关键点D之间的部分亲和度的二维矢量场(Part AffinityFields)。As shown in Figure 3, through the MobileNet_v2 model, we can obtain a set of feature maps, which are divided into two CNN network models, and the confidence maps (Part ConfidenceMaps) of the positions of the human ankle key point C and knee key point D are extracted respectively, and A two-dimensional vector field (Part AffinityFields) of the partial affinity between the human ankle key point C and the knee key point D.
如图4所示,然后通过贪心推理关联起一个人体所有关键点,并按合理的方式连接起来,构成人体的骨架。我们提取得到人体骨架在图中的坐标点,只取人脚踝关键点C,记录其坐标以及置信度。关联其他的骨骼关键点后,再取脚踝关键点C,让脚踝关键点C的位置更准确,避免误判。As shown in Figure 4, then all the key points of a human body are associated through greedy reasoning, and connected in a reasonable way to form the skeleton of the human body. We extract the coordinate points of the human skeleton in the figure, only take the key point C of the human ankle, and record its coordinates and confidence. After associating other skeleton key points, take the ankle key point C to make the position of the ankle key point C more accurate and avoid misjudgment.
如图5所示,在判断拍摄的图像内一个点是否在多边形的禁入区域B内,我们使用了射线法。判断模块3以待判断的脚踝关键点C为端点,沿水平方向发出一条射线,计算射线与多边形边的交点数,若射线与一多边形框的交点数为偶数,待判断的所述脚踝关键点C在禁入区域B外;若射线与一多边形框的交点数为奇数,待判断的所述脚踝关键点C在禁入区域B内。As shown in Figure 5, we use the ray method to judge whether a point in the captured image is in the forbidden area B of the polygon. The judgment module 3 takes the ankle key point C to be judged as the endpoint, sends out a ray along the horizontal direction, and calculates the number of intersections between the ray and the polygon edge. If the number of intersections between the ray and a polygon frame is an even number, the ankle key point to be judged C is outside the forbidden area B; if the number of intersections between the ray and a polygon frame is odd, the ankle key point C to be judged is within the forbidden area B.
在通过置信度阈值设置下,筛选出相对可信的脚踝点,用射线法判断脚踝关键点C在二维图像内是否在之前框选出的多边形内,如在多边形内,发出预警信号。Under the confidence threshold setting, relatively credible ankle points are screened out, and the ray method is used to judge whether the ankle key point C is within the polygon previously framed in the two-dimensional image. If it is within the polygon, an early warning signal is issued.
在所述判断模块3发现有脚踝关键点C在禁入区域B内,并停留超过特定时间,如大于1S、5S等时间时,相当于有人员进入禁入区域B,预警模块4发送人体脚踝关键点C在图像上的坐标信息、脚踝关键点C出现在禁入区域B内的时间,以及脚踝关键点C出现在禁入区域B内时拍摄到的图像到云端5,并发出预警信号。When the judgment module 3 finds that the key point C of the ankle is in the forbidden area B, and stays for more than a certain time, such as more than 1S, 5S, etc., it is equivalent to a person entering the forbidden area B, and the early warning module 4 sends the human ankle. The coordinate information of the key point C on the image, the time when the ankle key point C appears in the forbidden area B, and the image captured when the ankle key point C appears in the forbidden area B are sent to the cloud 5, and an early warning signal is issued.
结合图2至图6所示,本发明一个优选实施例中的基于人体姿态评估的视频围栏预警方法包括以下步骤:2 to 6, the video fence early warning method based on human body posture assessment in a preferred embodiment of the present invention includes the following steps:
S1、设定视频拍摄范围A,并在所述拍摄范围A内划定禁入区域B。可以根据摄像头拍摄到的画面,人工在画面上划出指定区域,指定为禁入区域B。在其他实施例中,也可采用图像识别技术,将在地面划定的堆放有危险物品及有安全隐患的区域自动划定为禁入区域,地面划定的区域可以为画有边框的区域,也可为涂有特殊颜色的区域。S1. Set a video shooting range A, and define a forbidden area B within the shooting range A. According to the picture captured by the camera, a designated area can be manually drawn on the screen and designated as the forbidden area B. In other embodiments, image recognition technology can also be used to automatically delineate the area delineated on the ground where dangerous objects are stacked and there are potential safety hazards as a no-entry area, and the area delimited on the ground can be an area with a frame drawn. Also available in areas painted with special colors.
S2、获取拍摄范围A内人员的脚踝关键点C的坐标信息及其置信度;S2, obtaining the coordinate information and the confidence level of the key point C of the ankle of the person within the shooting range A;
S3、判断获取的脚踝坐标是否在禁入区域B内,如发现有脚踝关键点C在禁入区域B内,则转到步骤S4;S3, determine whether the obtained ankle coordinates are in the forbidden area B, if it is found that there is an ankle key point C in the forbidden area B, then go to step S4;
S4、发送预警信号。S4. Send an early warning signal.
在一些实施例中,步骤S1中,所述禁入区域B为在所述拍摄范围A获取的画面上划定,包括以下步骤,In some embodiments, in step S1, the forbidden area B is demarcated on the screen obtained by the shooting range A, including the following steps:
抽取图像帧,监控人员可手动框选出图像中至少一个多边形框设定为禁入区域B,将每一多边形框的顶点坐标以一个集合P={[[x1,y1],[x2,y2],...,[xn,yn]],[[x’1,y’1],[x’2,y’2],...,[x’n,y’n]],...}的形式存储,其中x,y分别为多边形顶点的横纵坐标,每个多边形框由n个顶点组成,顶点之间按集合中排列顺序依次连接,形成多边形框,框内为禁入区域B。Extracting image frames, the monitoring personnel can manually select at least one polygonal frame in the image and set it as the forbidden area B, and set the vertex coordinates of each polygonal frame as a set P={[[x1,y1],[x2,y2 ],...,[xn,yn]],[[x'1,y'1],[x'2,y'2],...,[x'n,y'n]],. ..}, where x and y are the horizontal and vertical coordinates of the polygon vertices respectively, each polygon frame is composed of n vertices, and the vertices are connected in sequence in the order of the set to form a polygon frame, and the inside of the frame is forbidden. area B.
如图7所示,监控人员可手动框选出图像中禁入区域B的位置,先点击清除按钮,清空原来留下的框选区域,然后点击画面,设置禁入区域B的几个顶点,顶点之间会自动连接线段,完成禁入区域B框选,监控人员可点击图中的提交按钮,保存禁入区域B信息。As shown in Figure 7, the monitoring personnel can manually select the position of the forbidden area B in the image, first click the clear button to clear the original frame selection area, and then click the screen to set several vertices of the forbidden area B, Line segments will be automatically connected between the vertices to complete the box selection of the forbidden area B. The monitoring personnel can click the submit button in the figure to save the information of the forbidden area B.
所述步骤S2中,基于深度学习的卷积神经网络获取视频每帧图像的信息,结合热力图分析以及亲和力分析得到脚踝关键点C的所述坐标信息和置信度。In the step S2, the deep learning-based convolutional neural network obtains the information of each frame of the video, and combines the heat map analysis and the affinity analysis to obtain the coordinate information and confidence of the ankle key point C.
再如图2至图4所示,所述步骤S2中,如果所述拍摄范围A中存在人员,可以得到图像中全部的共18个人体骨骼关节关键点位于所述拍摄范围A对应的二维图像上的坐标信息以及骨骼关节关键点的置信度,选取其中人体脚踝关键点C的坐标信息以及其置信度。关联其他的骨骼关键点后,再取脚踝关键点C,让脚踝关键点C的位置更准确,避免误判。As shown in FIG. 2 to FIG. 4 , in step S2, if there is a person in the shooting range A, it can be obtained that all 18 key points of human skeleton joints in the image are located in the two-dimensional corresponding to the shooting range A. The coordinate information on the image and the confidence of the key points of the bones and joints are selected from the coordinate information of the key point C of the human ankle and its confidence. After associating other skeleton key points, take the ankle key point C to make the position of the ankle key point C more accurate and avoid misjudgment.
通过人脚踝关键点C,实现对人所处位置准确的定位,所以即使在人身体覆盖了框选区域的情况下,也能判断出没有人进入禁入区域B,因为人当前的位置在脚踝关键点C处,处于框选区域外。Through the key point C of the person's ankle, the accurate positioning of the person's position is realized, so even if the person's body covers the frame selection area, it can be judged that no one enters the forbidden area B, because the person's current position is at the ankle. The key point C is outside the frame selection area.
实现对人脚踝关键点C的识别,并在图像上画出了左右脚的脚踝关键点C,准确的识别出人站在了禁入区域B内。It realizes the identification of the key point C of the human ankle, and draws the key point C of the ankle of the left and right feet on the image, and accurately recognizes that the person is standing in the forbidden area B.
所述步骤S3中,以待判断的脚踝关键点C为端点,沿水平方向发出一条射线,若射线与一多边形框的交点数为偶数,待判断的所述关键点在禁入区域B外,若射线与一多边形框的交点数为奇数,待判断的所述关键点在禁入区域B内。In the step S3, taking the ankle key point C to be judged as the endpoint, a ray is emitted along the horizontal direction, if the number of intersections between the ray and a polygonal frame is an even number, the key point to be judged is outside the forbidden area B, If the number of intersections between the ray and a polygonal frame is an odd number, the key point to be determined is in the forbidden area B.
所述步骤S4中,还包括上传预警信息到云端5,显示所述拍摄范围A实时的图像。In the step S4, it also includes uploading the warning information to the cloud 5, and displaying the real-time image of the shooting range A.
云端5接收到预警信息,还原录像截图,并发出报警信息。云端5接收到发来的信息,把录像截图从base64格式转换成RGB格式,展示出来,并发出报警信息。The cloud 5 receives the warning information, restores the video screenshot, and sends out the alarm information. Cloud 5 receives the sent information, converts the video screenshot from base64 format to RGB format, displays it, and issues an alarm message.
可以理解地,上述各技术特征可以任意组合使用而不受限制。It can be understood that the above technical features can be used in any combination without limitation.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are only the embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied to other related technologies Fields are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910965361.2A CN110796032A (en) | 2019-10-11 | 2019-10-11 | Video fence and early warning method based on human posture assessment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910965361.2A CN110796032A (en) | 2019-10-11 | 2019-10-11 | Video fence and early warning method based on human posture assessment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110796032A true CN110796032A (en) | 2020-02-14 |
Family
ID=69440277
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910965361.2A Pending CN110796032A (en) | 2019-10-11 | 2019-10-11 | Video fence and early warning method based on human posture assessment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110796032A (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111476277A (en) * | 2020-03-20 | 2020-07-31 | 广东光速智能设备有限公司 | Alarm method and system based on image recognition |
| CN111814646A (en) * | 2020-06-30 | 2020-10-23 | 平安国际智慧城市科技股份有限公司 | Monitoring method, device, equipment and medium based on AI vision |
| CN112597903A (en) * | 2020-12-24 | 2021-04-02 | 珠高电气检测有限公司 | Electric power personnel safety state intelligent identification method and medium based on stride measurement |
| CN113139448A (en) * | 2021-04-14 | 2021-07-20 | 蔚来汽车科技(安徽)有限公司 | Safety monitoring method, device and system for charging and replacing power station, charging and replacing power station and medium |
| CN112016528B (en) * | 2020-10-20 | 2021-07-20 | 成都睿沿科技有限公司 | Behavior recognition method and device, electronic equipment and readable storage medium |
| CN113229807A (en) * | 2021-05-17 | 2021-08-10 | 四川大学华西医院 | Human body rehabilitation evaluation device, method, electronic device and storage medium |
| CN113657309A (en) * | 2021-08-20 | 2021-11-16 | 山东鲁软数字科技有限公司 | Adocf-based method for detecting violation behaviors of crossing security fence |
| CN113887318A (en) * | 2021-09-07 | 2022-01-04 | 国网浙江省电力有限公司衢州供电公司 | Embedded power violation detection method and system based on edge calculation |
| CN115661937A (en) * | 2022-11-04 | 2023-01-31 | 国体奥健信息科技(北京)有限公司 | A method and system for automatically judging human interference in a sports event preparation area |
| CN118674170A (en) * | 2024-07-25 | 2024-09-20 | 香港科技大学(广州) | Management method and device of micro-nano processing platform, computer equipment and storage medium |
| WO2025177053A1 (en) * | 2024-02-23 | 2025-08-28 | 云智能资产控股(新加坡)私人股份有限公司 | Intrusion detection method and apparatus, and storage medium and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109034124A (en) * | 2018-08-30 | 2018-12-18 | 成都考拉悠然科技有限公司 | A kind of intelligent control method and system |
| CN109934111A (en) * | 2019-02-12 | 2019-06-25 | 清华大学深圳研究生院 | A kind of body-building Attitude estimation method and system based on key point |
| CN110110657A (en) * | 2019-05-07 | 2019-08-09 | 中冶赛迪重庆信息技术有限公司 | Method for early warning, device, equipment and the storage medium of visual identity danger |
-
2019
- 2019-10-11 CN CN201910965361.2A patent/CN110796032A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109034124A (en) * | 2018-08-30 | 2018-12-18 | 成都考拉悠然科技有限公司 | A kind of intelligent control method and system |
| CN109934111A (en) * | 2019-02-12 | 2019-06-25 | 清华大学深圳研究生院 | A kind of body-building Attitude estimation method and system based on key point |
| CN110110657A (en) * | 2019-05-07 | 2019-08-09 | 中冶赛迪重庆信息技术有限公司 | Method for early warning, device, equipment and the storage medium of visual identity danger |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111476277A (en) * | 2020-03-20 | 2020-07-31 | 广东光速智能设备有限公司 | Alarm method and system based on image recognition |
| CN111814646A (en) * | 2020-06-30 | 2020-10-23 | 平安国际智慧城市科技股份有限公司 | Monitoring method, device, equipment and medium based on AI vision |
| CN111814646B (en) * | 2020-06-30 | 2024-04-05 | 深圳平安智慧医健科技有限公司 | AI vision-based monitoring method, device, equipment and medium |
| CN112016528B (en) * | 2020-10-20 | 2021-07-20 | 成都睿沿科技有限公司 | Behavior recognition method and device, electronic equipment and readable storage medium |
| CN112597903B (en) * | 2020-12-24 | 2021-08-13 | 珠高电气检测有限公司 | Electric power personnel safety state intelligent identification method and medium based on stride measurement |
| CN112597903A (en) * | 2020-12-24 | 2021-04-02 | 珠高电气检测有限公司 | Electric power personnel safety state intelligent identification method and medium based on stride measurement |
| CN113139448A (en) * | 2021-04-14 | 2021-07-20 | 蔚来汽车科技(安徽)有限公司 | Safety monitoring method, device and system for charging and replacing power station, charging and replacing power station and medium |
| CN113229807A (en) * | 2021-05-17 | 2021-08-10 | 四川大学华西医院 | Human body rehabilitation evaluation device, method, electronic device and storage medium |
| CN113657309A (en) * | 2021-08-20 | 2021-11-16 | 山东鲁软数字科技有限公司 | Adocf-based method for detecting violation behaviors of crossing security fence |
| CN113887318A (en) * | 2021-09-07 | 2022-01-04 | 国网浙江省电力有限公司衢州供电公司 | Embedded power violation detection method and system based on edge calculation |
| CN115661937A (en) * | 2022-11-04 | 2023-01-31 | 国体奥健信息科技(北京)有限公司 | A method and system for automatically judging human interference in a sports event preparation area |
| WO2025177053A1 (en) * | 2024-02-23 | 2025-08-28 | 云智能资产控股(新加坡)私人股份有限公司 | Intrusion detection method and apparatus, and storage medium and electronic device |
| CN118674170A (en) * | 2024-07-25 | 2024-09-20 | 香港科技大学(广州) | Management method and device of micro-nano processing platform, computer equipment and storage medium |
| CN118674170B (en) * | 2024-07-25 | 2025-06-24 | 香港科技大学(广州) | Management method and device of micro-nano processing platform, computer equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110796032A (en) | Video fence and early warning method based on human posture assessment | |
| CN110569772B (en) | A method for detecting the state of people in a swimming pool | |
| CN103425967B (en) | A kind of based on stream of people's monitoring method of pedestrian detection and tracking | |
| CN105286871B (en) | Video processing-based body height measurement method | |
| CN106033601A (en) | Method and apparatus for detecting abnormal situation | |
| CN108205797A (en) | A kind of panoramic video fusion method and device | |
| CN106384106A (en) | Anti-fraud face recognition system based on 3D scanning | |
| JP7092615B2 (en) | Shadow detector, shadow detection method, shadow detection program, learning device, learning method, and learning program | |
| CN107256377A (en) | Method, apparatus and system for detecting the object in video | |
| CN105516654A (en) | Scene-structure-analysis-based urban monitoring video fusion method | |
| WO2018101247A1 (en) | Image recognition imaging apparatus | |
| KR102167835B1 (en) | Apparatus and method of processing image | |
| CN106264537A (en) | The measurement system and method for human body attitude height in image | |
| CN115359371A (en) | Urban low-altitude non-cooperative unmanned aerial vehicle digital risk assessment method | |
| CN112053397B (en) | Image processing method, device, electronic device and storage medium | |
| CN114372996A (en) | A Pedestrian Trajectory Generation Method for Indoor Scenes | |
| CN107862713A (en) | Video camera deflection for poll meeting-place detects method for early warning and module in real time | |
| Dai et al. | Geometry-based object association and consistent labeling in multi-camera surveillance | |
| JP2019029747A (en) | Image surveillance system | |
| CN101859376A (en) | Human detection system based on fisheye camera | |
| US11703820B2 (en) | Monitoring management and control system based on panoramic big data | |
| JP2019027882A (en) | Object distance detection device | |
| CN116310907A (en) | Building construction supervision method, device and storage medium | |
| CN106295790A (en) | A kind of method and device being carried out destination number statistics by video camera | |
| CN110991383B (en) | Multi-camera combined perimeter region personnel positioning method |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200214 |
|
| RJ01 | Rejection of invention patent application after publication |
