The invention relates to the technical field of flood control, and discloses a judgment method of flood control door switch, which mainly includes the following steps: display the shooting interface of the camera of the device; obtain the image of the shooting interface, and determine that the shooting interface includes the flood control door according to the image; obtain the flood control door number on the image of the shooting interface; obtain the image of the next shooting interface and compare it with the previous shooting interface The image of the interface is compared; when the number of the flood gate on the image in the next shooting interface disappears or the distance between the numbers on the two flood gates is increased to the threshold value compared with the image in the previous shooting interface, it means that the flood gate is opened. The invention also discloses an electronic device for judging flood gate switch. The invention reduces the management cost of river flood prevention and improves the management level of river flood prevention.
【技术实现步骤摘要】
一种防汛门开关的判断方法和电子设备
本专利技术涉及防汛的
,尤其是涉及一种防汛门开关的判断方法和电子设备。
技术介绍
随着经济和社会的不断发展,居民对休闲娱乐的要求也在不断提高,尤其是近年来对内陆河流的整治,部分河流岸线已经成为了市民休闲、健身、娱乐的主要场所。但是河流沿线的防汛安全却不容乐观,两岸的堤防设施、设备的重要性凸显,而目前的堤防管理还存在薄弱环节,尤其是防汛门都是按照警戒水位建设,对其的监管力度直接影响到核心地区的安全。近年来各省市的河道整治与建设发展速度都非常快,但是相应的堤防管理和安全管理建设速度并没有完全跟上。堤防管理和安全管理建设主要有以下几个方面:1.防汛防台安全的需要防汛门一直是保障沿线企业和公众安全的主要设施,也是防汛的薄弱环节之一。历年来因防汛门故障或人为疏忽造成潮水倒灌,危害到沿岸安全的事件也偶有发生,通过信息化手段对沿岸防汛门状态进行监控,可有效的提高防汛能力。2.堤防精细化管理的需要在堤防网格化管理模式推行后,堤防沿岸已实现巡查人员全覆盖。但人工 ...
【技术保护点】
1.一种防汛门开关的判断方法,应用于电子设备,其特征在于,所述方法包括:/n显示所述设备的摄像头的拍摄界面;/n获取所述拍摄界面的图像,根据所述图像确定所述拍摄界面上包括防汛门;/n获取所述拍摄界面图像上的防汛门编号;/n获取下一个所述拍摄界面的图像并将其与上一个所述拍摄界面的图像做比对;/n当下一个所述拍摄界面中图像上的防汛门编号消失或者两扇防汛门上编号之间距离与上一张所述拍摄界面中图像对比增加到阈值时则说明防汛门开启。/n
【技术特征摘要】
1.一种防汛门开关的判断方法,应用于电子设备,其特征在于,所述方法包括:
显示所述设备的摄像头的拍摄界面;
获取所述拍摄界面的图像,根据所述图像确定所述拍摄界面上包括防汛门;
获取所述拍摄界面图像上的防汛门编号;
获取下一个所述拍摄界面的图像并将其与上一个所述拍摄界面的图像做比对;
当下一个所述拍摄界面中图像上的防汛门编号消失或者两扇防汛门上编号之间距离与上一张所述拍摄界面中图像对比增加到阈值时则说明防汛门开启。
2.根据权利要求1所述的一种防汛门开关的判断方法,其特征在于:获取所述拍摄界面的图像,还包括自动调整亮度,使得所述拍摄界面上图像的显示亮度达到预设值。
3.根据权利要求1或所述的一种防汛门开关的判断方法,其特征在于:获取所述拍摄界面的图像,还包括自动调整清晰度,使得所述拍摄界面上图像的显示清晰度达到预设值。
4.根据权利要求1-3中任意一项所述的一种防汛门开关的判断方法,其特征在于:所述电子设备保存防汛门的特征,以及
所述获取所述拍摄界面上第一对象的特征,所述第一对象的特征用于确定所述第一对象的类别;
根据所述第一对象的特征和所述防汛门的特征,确定所述第一对象为防汛门。
5.根据权利要求4所述的一种防汛门开关的判断方法,其特征在于:确定所述第一对象为防汛门,包括:
当所述第一对象的特征和所述防汛门的特征匹配程度大于或者等于第一阈值时,确定所述第一对象为防汛门。
6...
【专利技术属性】
技术研发人员:张震,姜永建,
申请(专利权)人:上海高诚智能科技有限公司,
类型:发明
国别省市:上海;31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。