The invention discloses an anti-climbing alarm police method based on image variance algorithm, which performs gray processing on the normal photo P0, calculates the mean square error between the frame image P of the camera and the anti-climbing detection area described in the contrast bottom image P0 in the monitoring process, judges the abnormal situation of the anti-climbing detection area according to the numerical situation of err, and saves the frame image P if abnormal is found. And report climbing alarm information. The anti-climbing alarm police method based on image variance algorithm of the present invention can report the abnormal situation of the anti-climbing detection area to the background system in real time to achieve real-time and accurate early warning, which is of great significance for reducing the difficulty of community security management and improving community security. The invention adopts image variance to preprocess and filter the image, which makes image recognition more efficient, fast and low energy consumption, thereby realizing real-time monitoring and proof processing of illegal climbing in the anti-climbing area.
【技术实现步骤摘要】
基于图像方差算法的防攀爬告警方法
本专利技术涉及一种智能小区检测报警方法,尤其涉及一种基于图像方差算法的防攀爬告警方法。
技术介绍
随着社会的发展和科技的进步,国内人口不断流向几个超大城市进行集中,城市的治安管理呈现基数大、流动性高、居住位置分散和管控难度高等特点,使得近几年治安事件和刑事案件增加,治理困难。进而衍生出很多通过科技和信息化手段进行精准打击危害社会治安的现象,从而降低社会治安管理难度和提高公安等政府机关的预测预警研判能力,精确打击和动态管理等能力的提升,有效提高社区安防智能化水平,提高居民居住幸福指数。目前中国社区仍旧是以围墙圈定,来维护小区的安全,对于一些安全指数比较低的围墙区域,极易成为不法分子攀越的点,加大了小区的治安管理难度,通过人为的巡查,很难及时和实时的对不法行为进行监控和处理。因此,有必要提出一种方法,以克服现有技术缺陷。
技术实现思路
本专利技术的目的是解决现有技术中的问题,提供一种基于图像方差算法的防攀爬告警方法,本专利技术的基于图像方差算法的防攀爬告警方法可以实时地、智能地检测小区内禁止攀爬区域的情况,若有攀爬行为可以取证并将告警信息上报。本专利技术的技术方案是:一种基于图像方差算法的防攀爬告警方法,包括以下步骤:S1、在防攀爬区域设置摄像头;S2、通过所述摄像头拍摄影像,在所述摄像头成像相片内将防攀爬检测区域进行圈定;S3、在所述防攀爬检测区域正常情况下,获取一张照片P0作为对比底图;对P0进行灰度处理得到灰度图P0_gray;S4、每隔N帧实时对摄像头的帧图像P与对比底图P0中所述防攀爬检测区域进行均方差err计算;S5、 ...
【技术保护点】
1.基于图像方差算法的防攀爬告警方法,其特征在于:包括以下步骤:S1、在防攀爬区域设置摄像头;S2、通过所述摄像头拍摄影像,在所述摄像头成像相片内将防攀爬检测区域进行圈定;S3、在所述防攀爬检测区域正常情况下,获取一张照片P0作为对比底图;对P0进行灰度处理得到灰度图P0_gray;S4、每隔N帧实时对摄像头的帧图像P与对比底图P0中所述防攀爬检测区域进行均方差err计算;S5、若err大于8,则保存所述帧图像P并上报攀爬告警信息。
【技术特征摘要】
1.基于图像方差算法的防攀爬告警方法,其特征在于:包括以下步骤:S1、在防攀爬区域设置摄像头;S2、通过所述摄像头拍摄影像,在所述摄像头成像相片内将防攀爬检测区域进行圈定;S3、在所述防攀爬检测区域正常情况下,获取一张照片P0作为对比底图;对P0进行灰度处理得到灰度图P0_gray;S4、每隔N帧实时对摄像头的帧图像P与对比底图P0中所述防攀爬检测区域进行均方差err计算;S5、若err大于8,则保存所述帧图像P并上报攀爬告警信息。2.根据权利要求1所述的基于图像方差算法的防攀爬告警方法,其特征在于:在所述步骤S4之后还包括步骤S6:记上一次底图更新时间为T0,若检测到某一帧图像P的对比均方差err小于1,且此时时间T满足T-T0>60s,则将底图P0替换为P,对底图进行更新。3.根据权利要求2所述的基于图像方差算法的防攀爬告警方法,其特征在于:所述步骤S6与所述步骤S5同步进行。4.根据权利要求1所述的基于图像方差算法...
【专利技术属性】
技术研发人员:魏晓林,许凯翔,陈宏亮,陈勇,杨俊武,
申请(专利权)人:上海天诚比集科技有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。