[go: up one dir, main page]

CN107798817A - Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium - Google Patents

Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium Download PDF

Info

Publication number
CN107798817A
CN107798817A CN201710981708.3A CN201710981708A CN107798817A CN 107798817 A CN107798817 A CN 107798817A CN 201710981708 A CN201710981708 A CN 201710981708A CN 107798817 A CN107798817 A CN 107798817A
Authority
CN
China
Prior art keywords
vehicle
water logging
flooding
image frame
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
Application number
CN201710981708.3A
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.)
Stare At Shoot Shenzhen Technology Co ltd
Original Assignee
Stare At Shoot Shenzhen 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 Stare At Shoot Shenzhen Technology Co ltd filed Critical Stare At Shoot Shenzhen Technology Co ltd
Priority to CN201710981708.3A priority Critical patent/CN107798817A/en
Publication of CN107798817A publication Critical patent/CN107798817A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • G06V20/593Recognising seat occupancy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Emergency Alarm Devices (AREA)
  • Alarm Systems (AREA)

Abstract

The application, which provides a kind of vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium, method, to be included:Obtain the image frame of the setting position outside vehicle;Determine the reference object in image frame;Identify the water logging position relative to reference object in image frame;Judge whether water logging position reaches predeterminated position, if it is, thinking that vehicle is in the precarious position of water logging, send water logging pre-warning signal and notify user.The application can be in the precarious position of water logging when vehicle, be caused damage to vehicle, or even before endangering human life's safety, carry out water logging early warning, avoid user because massive losses caused by water logging.

Description

车辆水浸预警方法、车辆水浸预警装置、终端设备以及计算机 可读存储介质Vehicle flooding warning method, vehicle flooding warning device, terminal equipment and computer readable storage medium

技术领域technical field

本申请涉及监控领域,尤其涉及车辆水浸预警方法、车辆水浸预警装置、终端设备以及计算机可读存储介质。The present application relates to the field of monitoring, and in particular to a vehicle flooding warning method, a vehicle flooding warning device, terminal equipment and a computer-readable storage medium.

背景技术Background technique

现有技术中,经常会出现车辆被水泡的现象。特别是在某些经常下雨的区域以及地势较低、排水较差的地区,车辆被水泡的概率就更大了。车辆被水泡后,可能会对车辆的功能造成影响,这样就会对用户造成一定的财产损失,甚至,如果车辆内有人的话,则可能会危及生命安全。因此,需要在车辆受到水浸时,提供预警措施,将用户损失降至最低。In the prior art, the phenomenon that the vehicle is soaked in water often occurs. Especially in some areas where it often rains and areas with low terrain and poor drainage, the probability of vehicles being soaked in water is even greater. After the vehicle is soaked in water, it may affect the function of the vehicle, which will cause certain property damage to the user, and may even endanger the safety of life if there are people in the vehicle. Therefore, it is necessary to provide early warning measures to minimize user losses when the vehicle is flooded.

发明内容Contents of the invention

本申请提供一种车辆水浸预警方法、车辆水浸预警装置、终端设备以及计算机可读存储介质,能够解决现在因为没有对车辆在被水浸时进行预警而导致财产的损失甚至危及生命安全的问题。The present application provides a vehicle flooding early warning method, vehicle flooding early warning device, terminal equipment and computer-readable storage medium, which can solve the current problem of property loss or even life-threatening due to lack of early warning when the vehicle is flooded. question.

根据本申请的第一方面,本申请提供一种车辆水浸预警方法,方法包括:获取车辆外的设定位置的图像画面;确定图像画面中的参照目标;识别图像画面中的相对于参照目标的水浸位置;判断水浸位置是否达到预设位置,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。According to the first aspect of the present application, the present application provides a vehicle flooding early warning method, the method includes: acquiring an image frame of a set position outside the vehicle; determining a reference target in the image frame; The flooding position; determine whether the flooding position reaches the preset position, if so, it is considered that the vehicle is in a dangerous state of flooding, and a flooding warning signal is sent to notify the user.

优选地,方法还包括:判断水浸位置的变化在预设时间内是否超过预设变化值,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。Preferably, the method further includes: judging whether the change of the flooding position exceeds a preset change value within a preset time, and if yes, the vehicle is considered to be in a dangerous state of flooding, and a flooding warning signal is issued to notify the user.

优选地,在判断到车辆处于水浸的危险状态的步骤后,方法还包括:获取车辆内部的图像画面,判断车辆内是否有人,如果车辆内有人,则发出求救信号,通知预设的相关人员。Preferably, after the step of judging that the vehicle is in a dangerous state of flooding, the method further includes: acquiring an image picture inside the vehicle, judging whether there is a person in the vehicle, and if there is a person in the vehicle, sending a distress signal to notify preset relevant personnel .

优选地,方法还包括:控制车内预设门窗开启供用户逃生。Preferably, the method further includes: controlling the opening of preset doors and windows in the vehicle for the user to escape.

根据本申请的第二方面,本申请提供一种车辆水浸预警装置,装置包括:图像获取模块,用于获取车辆外的设定位置的图像画面;参照目标确定模块,用于确定图像画面中的参照目标;水浸位置识别模块,用于识别图像画面中的相对于参照目标的水浸位置;水浸位置判断模块,用于判断水浸位置是否达到预设位置,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。According to the second aspect of the present application, the present application provides a vehicle flooding early warning device, the device includes: an image acquisition module, used to acquire an image frame of a set position outside the vehicle; a reference target determination module, used to determine The reference target of the flood position; the flood position recognition module is used to identify the flood position relative to the reference target in the image screen; the flood position judgment module is used to judge whether the flood position reaches the preset position, and if so, it is considered that the vehicle In the dangerous state of flooding, a flooding warning signal is issued to notify the user.

优选地,装置还包括:水浸位置变化判断模块,用于判断水浸位置的变化在预设时间内是否超过预设变化值,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。Preferably, the device further includes: a water immersion position change judging module, which is used to judge whether the change of the water immersion position exceeds a preset change value within a preset time; The dip warning signal notifies the user.

优选地,装置还包括:车内人员识别模块,用于获取车辆内部的图像画面,判断车辆内是否有人,如果车辆内有人,则发出求救信号,通知预设的相关人员。Preferably, the device further includes: a person-in-vehicle identification module, configured to acquire images inside the vehicle, determine whether there is a person in the vehicle, and if there is a person in the vehicle, send a distress signal to notify preset relevant personnel.

优选地,装置还包括:设备控制模块,用于控制车内预设门窗开启供用户逃生。Preferably, the device further includes: an equipment control module, configured to control the opening of preset doors and windows in the vehicle for the user to escape.

根据本申请的第三方面,本申请提供一种存储设备,视频存储设备存储有多条指令,指令适于由处理器加载并且执行;指令包括:获取车辆外的设定位置的图像画面;确定图像画面中的参照目标;识别图像画面中的相对于参照目标的水浸位置;判断水浸位置是否达到预设位置,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。According to the third aspect of the present application, the present application provides a storage device, the video storage device stores a plurality of instructions, and the instructions are suitable for being loaded and executed by a processor; the instructions include: acquiring an image frame of a set position outside the vehicle; determining The reference target in the image screen; identify the flooding position relative to the reference target in the image screen; judge whether the flooding position reaches the preset position, if so, it is considered that the vehicle is in a dangerous state of flooding, and a flooding warning signal is issued Notify the user.

根据本申请的第四方面,本申请提供一种终端,包括:处理器,适于实现各指令;以及存储设备,适于存储有多条指令,指令适于由处理器加载并且执行;指令包括:获取车辆外的设定位置的图像画面;确定图像画面中的参照目标;识别图像画面中的相对于参照目标的水浸位置;判断水浸位置是否达到预设位置,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。According to the fourth aspect of the present application, the present application provides a terminal, including: a processor, adapted to implement various instructions; and a storage device, adapted to store a plurality of instructions, and the instructions are suitable for being loaded and executed by the processor; the instructions include : Obtain the image frame of the set position outside the vehicle; determine the reference target in the image frame; identify the flooding position in the image frame relative to the reference target; judge whether the flooding position reaches the preset position, and if so, consider the vehicle In the dangerous state of flooding, a flooding warning signal is issued to notify the user.

本申请的有益效果在于:通过获取车辆外的设定位置的图像画面,确定所述图像画面中的参照目标,然后识别图像画面中的相对于参照目标的水浸位置,当判断到水浸位置到达预设位置时进行水浸预警,这样就能够告知用户车辆正处于水浸的危险状态中,在水浸给车辆造成损失,甚至危害车内人员生命安全前进行报警,避免用户因为水浸所造成的巨大损失。The beneficial effects of the present application are: by acquiring an image frame of a set position outside the vehicle, determining the reference target in the image frame, and then identifying the flooding position in the image frame relative to the reference target, when the flooding position is judged When it reaches the preset position, it will perform a flood warning, so that the user can be informed that the vehicle is in a dangerous state of flooding, and the alarm will be issued before the flooding causes damage to the vehicle or even endangers the life safety of the people in the vehicle, so as to avoid the user being injured by flooding. caused huge losses.

附图说明Description of drawings

图1是本申请一实施例的车辆水浸预警方法的流程图;Fig. 1 is a flowchart of a vehicle flooding early warning method according to an embodiment of the present application;

图2是本申请另一实施例的车辆水浸预警方法的流程图;Fig. 2 is a flowchart of a vehicle flooding early warning method according to another embodiment of the present application;

图3是本申请一实施例的车辆水浸预警装置的原理图;Fig. 3 is a schematic diagram of a vehicle flooding warning device according to an embodiment of the present application;

图4是本申请另一实施例的车辆水浸预警装置的原理图。Fig. 4 is a schematic diagram of a vehicle flood warning device according to another embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和示例性实施例对本发明作进一步地描述,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。此外,如果已知技术的详细描述对于示出本发明的特征是不必要的,则将其省略。The present invention will be further described below with reference to the accompanying drawings and exemplary embodiments, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions . The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. Also, detailed descriptions of known arts will be omitted if they are unnecessary to illustrate the features of the present invention.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.

请参阅图1,请参阅图1,本申请提出一种车辆水浸预警方法,方法包括:Please refer to Figure 1, please refer to Figure 1, this application proposes a vehicle flooding early warning method, the method includes:

步骤S101:获取车辆外的设定位置的图像画面。图像画面主要是通过安装在车辆上的摄像头传感器获得。Step S101: Acquiring an image frame of a set position outside the vehicle. The image frame is mainly obtained by the camera sensor installed on the vehicle.

本实施例中,设定位置可以为车辆的前方,也可以是车辆的一侧,则获取的图像画面,可以是车辆前方的图像画面,也可以是车辆一侧的图像画面。本申请不设限制,可以是车辆任意侧面的图像画面。In this embodiment, the set position can be the front of the vehicle or a side of the vehicle, and the acquired image frame can be the image frame in front of the vehicle or the image frame on the side of the vehicle. There is no limitation in this application, and it may be an image screen of any side of the vehicle.

步骤S102:确定图像画面中的参照目标。Step S102: Determine the reference target in the image frame.

本实施例中,参照目标可以为一面白色的墙体,也可以为一根直立的柱子,或者对面静止的汽车。参照目标根据实际的情形进行选择,一般优先选择静止的物体,同时车辆也需要保持静止,总之,选择参照目标要在车辆保持静止的状态下进行。In this embodiment, the reference target may be a white wall, or an upright pillar, or a stationary car opposite. The reference target is selected according to the actual situation. Generally, stationary objects are preferred, and the vehicle also needs to remain stationary. In short, the reference target should be selected when the vehicle remains stationary.

步骤S103:识别图像画面中的相对于参照目标的水浸位置。Step S103: Identify the flooding position in the image frame relative to the reference target.

本实施例中,通过图像识别技术识别水浸位置。具体是,通过识别图像画面中连续一片相同的像素点的颜色来确定图像画面中的水浸的位置。比如,如果选择墙体作为参照目标,则图像中会出现连续一片颜色均为白色的像素点,而水的像素点不是白色的,水的像素点是一片黄色或者灰色的像素点,这样图像画面中就具有两种颜色的像素点,而水的像素点一般在下方。通过分析水的像素点相对参考目标在图像上的位置,即可以知道水相对墙体的位置,亦既是水浸位置。本实施例中,可以根据图像画面与实际物体的比例大小和比例公式换算得到水浸位置的高度。比如,通过图像识别技术识别到4米高的白色墙面在垂直于地面的方向上有相似的800个像素点,水浸之后在垂直于地面的方向上有400个像素点变成其他颜色,则此时预计水位达到2米。In this embodiment, the location of flooding is identified through image recognition technology. Specifically, the position of the flooding in the image frame is determined by identifying the color of a continuous piece of the same pixel in the image frame. For example, if you select a wall as the reference target, there will be a continuous piece of white pixels in the image, but the water pixels are not white, and the water pixels are a piece of yellow or gray pixels. There are pixels of two colors in the center, and the pixels of water are generally below. By analyzing the position of the pixels of the water relative to the reference target on the image, the position of the water relative to the wall can be known, which is also the flooding position. In this embodiment, the height of the flooded position can be obtained through conversion according to the ratio of the image frame to the actual object and the ratio formula. For example, through image recognition technology, it is recognized that the 4-meter-high white wall has similar 800 pixels in the direction perpendicular to the ground, and after flooding, 400 pixels in the direction perpendicular to the ground change into other colors. At this time, the water level is expected to reach 2 meters.

步骤S104:判断水浸位置是否达到预设位置,如果水浸位置达到预设位置,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。Step S104: Determine whether the flooding position reaches the preset position. If the flooding position reaches the preset position, it is considered that the vehicle is in a dangerous state of flooding, and a flooding warning signal is sent to notify the user.

本实施例中,预设位置为参照目标在图像画面中的高度的二分之一。当水浸位置达到参照目标在图像画面中的高度的二分之一时,则认为车辆处于水浸的危险状态。In this embodiment, the preset position is half of the height of the reference target in the image frame. When the flooding position reaches half of the height of the reference target in the image frame, it is considered that the vehicle is in a dangerous state of flooding.

本实施例中,水浸预警信号通过2G/3G/4G网络发送至用户的移动终端。In this embodiment, the flood warning signal is sent to the user's mobile terminal through the 2G/3G/4G network.

请参阅图2,本申请提出一种车辆水浸预警方法,方法包括:Please refer to Fig. 2, the present application proposes a vehicle flooding early warning method, the method includes:

步骤S201:获取车辆外的设定位置的图像画面。图像画面主要是通过安装在车辆上的摄像头传感器获得。Step S201: Acquiring an image frame of a set position outside the vehicle. The image frame is mainly obtained by the camera sensor installed on the vehicle.

本实施例中,设定位置可以为车辆的前方,也可以是车辆的一侧,则获取的图像画面,可以是车辆前方的图像画面,也可以是车辆一侧的图像画面。本申请不设限制,可以是车辆任意侧面的图像画面。In this embodiment, the set position can be the front of the vehicle or a side of the vehicle, and the acquired image frame can be the image frame in front of the vehicle or the image frame on the side of the vehicle. There is no limitation in this application, and it may be an image screen of any side of the vehicle.

步骤S202:确定图像画面中的参照目标。Step S202: Determine the reference target in the image frame.

本实施例中,参照目标可以为一面白色的墙体,也可以为一根直立的柱子,或者对面静止的一辆汽车。参照目标根据实际的情形进行选择,一般优先选择静止的物体,同时车辆也需要保持静止,总之,选择参照目标要在车辆保持静止的状态下进行。In this embodiment, the reference target can be a white wall, an upright pillar, or a stationary car on the opposite side. The reference target is selected according to the actual situation. Generally, stationary objects are preferred, and the vehicle also needs to remain stationary. In short, the reference target should be selected when the vehicle remains stationary.

步骤S203:识别图像画面中的相对于参照目标的水浸位置。Step S203: Identify the flooding position in the image frame relative to the reference target.

本实施例中,通过图像识别技术识别水浸位置。具体是,通过识别图像画面中连续一片相同的像素点的颜色来确定图像画面中的水浸的位置。比如,如果选择墙体作为参照目标,则图像中会出现连续一片颜色均为白色的像素点,而水的像素点不是白色的,水的像素点是一片黄色或者灰色的像素点,这样图像画面中就具有两种颜色的像素点,而水的像素点一般在下方。通过分析水的像素点相对参考目标在图像上的位置,即可以知道水相对墙体的位置,亦既是水浸位置。本实施例中,可以根据图像画面与实际物体的比例大小和比例公式换算得到水浸位置的高度。比如,通过图像识别技术识别到4米高的白色墙面在垂直于地面的方向上有相似的800个像素点,水浸之后在垂直于地面的方向上有400个像素点变成其他颜色,则此时预计水位达到2米。In this embodiment, the location of flooding is identified through image recognition technology. Specifically, the position of the flooding in the image frame is determined by identifying the color of a continuous piece of the same pixel in the image frame. For example, if you select a wall as the reference target, there will be a continuous piece of white pixels in the image, but the water pixels are not white, and the water pixels are a piece of yellow or gray pixels. There are pixels of two colors in the center, and the pixels of water are generally below. By analyzing the position of the pixels of the water relative to the reference target on the image, the position of the water relative to the wall can be known, which is also the flooding position. In this embodiment, the height of the flooded position can be obtained through conversion according to the ratio of the image frame to the actual object and the ratio formula. For example, through image recognition technology, it is recognized that the 4-meter-high white wall has similar 800 pixels in the direction perpendicular to the ground, and after flooding, 400 pixels in the direction perpendicular to the ground change into other colors. At this time, the water level is expected to reach 2 meters.

步骤S204:判断水浸位置是否达到预设位置,如果是,则跳到步骤S206,否则跳到步骤S205。Step S204: Judging whether the flooding position has reached the preset position, if yes, skip to step S206, otherwise, skip to step S205.

本实施例中,预设位置为参照目标在图像画面中的高度的二分之一。当水浸位置达到参照目标在图像画面中的高度的二分之一时,则认为车辆处于水浸的危险状态。In this embodiment, the preset position is half of the height of the reference target in the image frame. When the flooding position reaches half of the height of the reference target in the image frame, it is considered that the vehicle is in a dangerous state of flooding.

进一步地,方法还包括:Further, the method also includes:

步骤S205:判断水浸位置的变化在预设时间内是否超过预设变化值,如果是,则跳到步骤S206,否则跳到步骤S205。Step S205: Determine whether the change of the flood position exceeds a preset change value within a preset time, if yes, go to step S206, otherwise go to step S205.

本实施例中,也可以通过判断水浸位置的变化来判断车辆是否处于水浸的危险状态中。比如,以墙体作为参照目标,设置预设时间为40秒,并且识别40秒内水浸位置变化是否超过三分之一的墙体高度。如果识别到水浸位置在40秒内变化超过三分之一的墙体高度,则认为水浸位置在急剧的攀升,车辆处于水浸的危险状态。In this embodiment, it is also possible to judge whether the vehicle is in a dangerous state of flooding by judging the change of the flooding position. For example, take the wall as a reference target, set the preset time to 40 seconds, and identify whether the change of the flood position within 40 seconds exceeds one-third of the wall height. If it is recognized that the flooding position changes by more than one-third of the wall height within 40 seconds, it is considered that the flooding position is rising sharply, and the vehicle is in a dangerous state of flooding.

亦既是说,水浸位置只要超过参照目标的预设位置或者水浸位置的变化值在设定时间超过预设值,则都认为车辆处于水浸的危险状态。That is to say, as long as the flooding position exceeds the preset position of the reference target or the change value of the flooding position exceeds the preset value within the set time, the vehicle is considered to be in a dangerous state of flooding.

步骤S206:认为车辆处于水浸的危险状态中时,发出水浸预警信号通知用户。Step S206: When the vehicle is considered to be in a dangerous state of flooding, a flooding warning signal is sent to notify the user.

本实施例中,水浸预警信号通过2G/3G/4G网络发送至用户的移动终端。In this embodiment, the flood warning signal is sent to the user's mobile terminal through the 2G/3G/4G network.

进一步地,在判断到车辆处于水浸的危险状态的步骤后,方法还包括:Further, after the step of judging that the vehicle is in a dangerous state of flooding, the method further includes:

步骤S207:获取车辆内部的图像画面,判断车辆内部是否有人,如果车辆内有人,则发出求救信号,通知预设的相关人员。Step S207: Obtain the image screen inside the vehicle, determine whether there is a person inside the vehicle, and if there is a person in the vehicle, send a distress signal and notify the preset relevant personnel.

本实施例中,预设的相关人员可以为公安、消防、医院等机构的救援人员。求救信号和预警信号是不同的,求救信号主要是针对在车辆被水浸,并且车内有人员被困的时候,向救援人员发出的求救信号。求救信号主要通过2G/3G/4G的通信模块进行发送,或者,通过基站发送广播的方式进行。In this embodiment, the preset relevant personnel may be rescue personnel from institutions such as public security, firefighting, and hospitals. The distress signal and the early warning signal are different. The distress signal is mainly aimed at sending a distress signal to rescuers when the vehicle is flooded and people are trapped in the vehicle. The distress signal is mainly sent through the 2G/3G/4G communication module, or through the broadcasting method of the base station.

本实施例中,可以根据水浸位置相对参照目标的位置高度设置预警等级。比如,设置当水浸位置相对参照目标,在参照目标的第一位置时,进行第一等级水浸预警;设置当水浸位置相对参照目标,在参照目标的第二位置时,进行第二等级水浸预警;设置当水浸位置相对参照目标,在参照目标的第三位置时,进行第三等级水浸预警。其中,第一位置为参照目标的二分之一处,第二位置为参照目标的三分之二处,第三位置为参照目标的四分之三处。第一等级水浸预警为轻度水浸预警,第二等级水浸预警为中度水浸预警,第三等级水浸预警为重度水浸预警。In this embodiment, the warning level can be set according to the height of the flood position relative to the reference target. For example, set when the flooding position is relative to the reference target, when it is at the first position of the reference target, the first level of flood warning will be performed; when the flooding position is relative to the reference target, when it is at the second position of the reference target, the second level will be performed Flooding warning; set when the flooding position is relative to the reference target and is at the third position of the reference target, the third level of flooding warning will be performed. Wherein, the first position is one-half of the reference target, the second position is two-thirds of the reference target, and the third position is three-quarters of the reference target. The first level of flooding warning is mild flooding warning, the second level of flooding warning is moderate flooding warning, and the third level of flooding warning is severe flooding warning.

进一步地,方法还包括:步骤S208:控制车内预设门窗开启供用户逃生。Further, the method further includes: Step S208: controlling the opening of preset doors and windows in the car for the user to escape.

本实施例中,当识别到车辆出现水浸,同时识别到车内有人被困的时候,控制车内预设门窗开启以帮助用户逃生。比如,控制车辆的天窗开启,这样用户就可以从顶部逃生了。In this embodiment, when it is recognized that the vehicle is flooded and a person is trapped in the vehicle, the preset doors and windows in the vehicle are controlled to open to help the user escape. For example, control the opening of the sunroof of the vehicle so that the user can escape from the top.

下面结合图1和图2来对本发明的工作原理进行说明。The working principle of the present invention will be described below with reference to FIG. 1 and FIG. 2 .

获取车辆外的设定位置的图像画面,确定图像画面中的参照目标。比如,以图像画面中的直立柱子作为参照目标。识别图像画面中相对直立柱子的水浸位置。判断水浸位置相对于参照目标的位置,当识别到水浸位置达到参照目标在图像画面中的高度的二分之一时,亦既是,当水浸过直立柱子的二分之一的时候,发出轻度水浸预警;当识别到水浸位置达到参照目标在图像画面中的高度的三分之二时,亦既是,当水浸过直立柱子的三分之二的时候,发出中度水浸预警;当识别到水浸位置达到参照目标在图像画面中的高度的四分之三时,亦既是,当水浸过直立柱子的四分之三的时候,发出重度水浸预警。An image frame of a set position outside the vehicle is acquired, and a reference target in the image frame is determined. For example, take the vertical pillar in the image frame as the reference target. Identify the location of flooding relative to upright columns in the image frame. Judging the position of the flooding position relative to the reference target, when it is recognized that the flooding position reaches 1/2 of the height of the reference target in the image frame, that is, when the water soaks through 1/2 of the upright column, Issue a mild flood warning; when it is recognized that the flood position reaches two-thirds of the height of the reference target in the image frame, that is, when the water soaks through two-thirds of the upright column, a moderate flood warning is issued. Water immersion warning; when it is recognized that the water immersion position reaches three-quarters of the height of the reference target in the image frame, that is, when the water has penetrated three-quarters of the upright column, a severe flooding warning is issued.

当发出轻度水浸预警信号的同时,获取车辆的图像画面,判断车辆内是否有人,如果判断到车辆内有人,则发出求救信号,通知公安、消防、医院等相关机构的救援人员。求救信号可以通过无线网络的方式发送,也可以通过基站广播的方式进行发送。When a mild flooding warning signal is issued, the image screen of the vehicle is obtained to determine whether there is a person in the vehicle. If it is determined that there is a person in the vehicle, a distress signal is sent to notify the rescue personnel of public security, fire protection, hospitals and other relevant institutions. The distress signal can be sent via a wireless network, or via a base station broadcast.

相应的,依据计算机软件的功能模块化思维,与图1和图2所示的车辆水浸预警方法的实施例对应,本发明还提供了一种车辆水浸预警装置。请参阅图3和图4,以下具体揭示本装置包括的模块以及各模块实现的具体功能。Correspondingly, according to the functional modularization thinking of computer software, corresponding to the embodiment of the vehicle flooding warning method shown in FIG. 1 and FIG. 2 , the present invention also provides a vehicle flooding warning device. Referring to FIG. 3 and FIG. 4 , the modules included in the device and the specific functions realized by each module are disclosed in detail below.

请参阅图3,该车辆水浸预警装置包括:Please refer to Figure 3, the vehicle flood warning device includes:

图像获取模块301,用于获取车辆外的设定位置的图像画面。图像画面主要是通过安装在车辆上的摄像头传感器获得。The image acquiring module 301 is configured to acquire an image frame of a set position outside the vehicle. The image frame is mainly obtained by the camera sensor installed on the vehicle.

本实施例中,设定位置可以为车辆的前方,也可以是车辆的一侧,则获取的图像画面,可以是车辆前方的图像画面,也可以是车辆一侧的图像画面。本申请不设限制,可以是车辆任意侧面的图像画面。In this embodiment, the set position can be the front of the vehicle or a side of the vehicle, and the acquired image frame can be the image frame in front of the vehicle or the image frame on the side of the vehicle. There is no limitation in this application, and it may be an image screen of any side of the vehicle.

参照目标确定模块302,用于确定图像画面中的参照目标。The reference target determining module 302 is configured to determine a reference target in an image frame.

本实施例中,参照目标可以为一面白色的墙体,也可以为一根直立的柱子,或者对面静止的一辆汽车。参照目标根据实际的情形进行选择,一般优选选择静止的物体,同时车辆也需要保持静止,总之,选择参照目标要在车辆保持静止的状态下进行。In this embodiment, the reference target can be a white wall, an upright pillar, or a stationary car on the opposite side. The reference target is selected according to the actual situation. Generally, it is preferred to select a stationary object, and the vehicle also needs to remain stationary. In short, the reference target should be selected when the vehicle remains stationary.

水浸位置识别模块303,用于识别图像画面中的相对于参照目标的水浸位置。The flood position identification module 303 is configured to identify the flood position in the image frame relative to the reference target.

本实施例中,通过图像识别技术识别水浸位置。具体是,通过识别图像画面中连续一片相同的像素点的颜色来确定图像画面中的水浸的位置。比如,如果选择墙体作为参照目标,则图像中会出现连续一片颜色均为白色的像素点,而水的像素点不是白色的,水的像素点是一片黄色或者灰色的像素点,这样图像画面中就具有两种颜色的像素点,而水的像素点一般在下方。通过分析水的像素点相对参考目标在图像上的位置,即可以知道水相对墙体的位置,亦既是水浸位置。本实施例中,可以根据图像画面与实际物体的比例大小和比例公式换算得到水浸位置的高度。比如,通过图像识别技术识别到4米高的白色墙面在垂直于地面的方向上有相似的800个像素点,水浸之后在垂直于地面的方向上有400个像素点变成其他颜色,则此时预计水位达到2米。In this embodiment, the location of flooding is identified through image recognition technology. Specifically, the position of the flooding in the image frame is determined by identifying the color of a continuous piece of the same pixel in the image frame. For example, if you select a wall as the reference target, there will be a continuous piece of white pixels in the image, but the water pixels are not white, and the water pixels are a piece of yellow or gray pixels. There are pixels of two colors in the center, and the pixels of water are generally below. By analyzing the position of the pixels of the water relative to the reference target on the image, the position of the water relative to the wall can be known, which is also the flooding position. In this embodiment, the height of the flooded position can be obtained through conversion according to the ratio of the image frame to the actual object and the ratio formula. For example, through image recognition technology, it is recognized that the 4-meter-high white wall has similar 800 pixels in the direction perpendicular to the ground, and after flooding, 400 pixels in the direction perpendicular to the ground change into other colors. At this time, the water level is expected to reach 2 meters.

预警模块304,用于判断水浸位置是否达到预设位置,如果是,则认为车辆处于水浸的危险状态中,发出水浸预警信号通知用户。The early warning module 304 is used to judge whether the flooding position has reached the preset position, if so, it is considered that the vehicle is in a dangerous state of flooding, and a flooding warning signal is sent to notify the user.

本实施例中,预设位置为参照目标在图像画面中的高度的二分之一。当水浸位置达到参照目标在图像画面中的高度的二分之一时,则认为车辆处于水浸的危险状态。In this embodiment, the preset position is half of the height of the reference target in the image frame. When the flooding position reaches half of the height of the reference target in the image frame, it is considered that the vehicle is in a dangerous state of flooding.

本实施例中,水浸预警信号通过2G/3G/4G网络发送至用户的移动终端。In this embodiment, the flood warning signal is sent to the user's mobile terminal through the 2G/3G/4G network.

请参阅图4,一种车辆水浸预警方法,方法包括:Please refer to Figure 4, a vehicle flooding early warning method, the method includes:

图像获取模块401,用于获取车辆外的设定位置的图像画面。图像画面主要是通过安装在车辆上的摄像头传感器获得。The image acquiring module 401 is configured to acquire an image frame of a set position outside the vehicle. The image frame is mainly obtained by the camera sensor installed on the vehicle.

本实施例中,设定位置可以为车辆的前方,也可以是车辆的一侧,则获取的图像画面,可以是车辆前方的图像画面,也可以是车辆一侧的图像画面。本申请不设限制,可以是车辆任意侧面的图像画面。In this embodiment, the set position can be the front of the vehicle or a side of the vehicle, and the acquired image frame can be the image frame in front of the vehicle or the image frame on the side of the vehicle. There is no limitation in this application, and it may be an image screen of any side of the vehicle.

参照目标确定模块402,用于确定图像画面中的参照目标。The reference target determining module 402 is configured to determine a reference target in an image frame.

本实施例中,参照目标可以为一面白色的墙体,也可以为一根直立的柱子,或者对面静止的一辆汽车。参照目标根据实际的情形进行选择,一般优先选择静止的物体,同时车辆也需要保持静止,总之,选择参照目标要在车辆保持静止的状态下进行。In this embodiment, the reference target can be a white wall, an upright pillar, or a stationary car on the opposite side. The reference target is selected according to the actual situation. Generally, stationary objects are preferred, and the vehicle also needs to remain stationary. In short, the reference target should be selected when the vehicle remains stationary.

水浸位置识别模块403,用于识别图像画面中的相对于参照目标的水浸位置。The flood position identification module 403 is configured to identify the flood position in the image frame relative to the reference target.

本实施例中,通过图像识别技术识别水浸位置。具体是,通过识别图像画面中连续一片相同的像素点的颜色来确定图像画面中的水浸的位置。比如,如果选择墙体作为参照目标,则图像中会出现连续一片颜色均为白色的像素点,而水的像素点不是白色的,水的像素点是一片黄色或者灰色的像素点,这样图像画面中就具有两种颜色的像素点,而水的像素点一般在下方。通过分析水的像素点相对参考目标在图像上的位置,即可以知道水相对墙体的位置,亦既是水浸位置。本实施例中,可以根据图像画面与实际物体的比例大小和比例公式换算得到水浸位置的高度。比如,通过图像识别技术识别到4米高的白色墙面在垂直于地面的方向上有相似的800个像素点,水浸之后在垂直于地面的方向上有400个像素点变成其他颜色,则此时预计水位达到2米。In this embodiment, the location of flooding is identified through image recognition technology. Specifically, the position of the flooding in the image frame is determined by identifying the color of a continuous piece of the same pixel in the image frame. For example, if you select a wall as the reference target, there will be a continuous piece of white pixels in the image, but the water pixels are not white, and the water pixels are a piece of yellow or gray pixels. There are pixels of two colors in the center, and the pixels of water are generally below. By analyzing the position of the pixels of the water relative to the reference target on the image, the position of the water relative to the wall can be known, which is also the flooding position. In this embodiment, the height of the flooded position can be obtained through conversion according to the ratio of the image frame to the actual object and the ratio formula. For example, through image recognition technology, it is recognized that the 4-meter-high white wall has similar 800 pixels in the direction perpendicular to the ground, and after flooding, 400 pixels in the direction perpendicular to the ground change into other colors. At this time, the water level is expected to reach 2 meters.

水浸位置判断模块404,用于判断水浸位置是否达到预设位置。The flood position judging module 404 is configured to judge whether the flood position has reached a preset position.

本实施例中,预设位置为参照目标在图像画面中的高度的二分之一。当水浸位置达到参照目标在图像画面中的高度的二分之一时,则认为车辆处于水浸的危险状态。In this embodiment, the preset position is half of the height of the reference target in the image frame. When the flooding position reaches half of the height of the reference target in the image frame, it is considered that the vehicle is in a dangerous state of flooding.

进一步地,装置还包括:Further, the device also includes:

水浸位置变化判断模块405,用于判断水浸位置的变化在预设时间内是否超过预设变化值。The water immersion position change judging module 405 is used to judge whether the change of the water immersion position exceeds a preset change value within a preset time.

本实施例中,也可以通过判断水浸位置的变化来判断车辆是否处于水浸的危险状态中。比如,以墙体作为参照目标,设置预设时间为40秒,并且识别40秒内水浸位置变化是否超过三分之一的墙体高度。如果识别到水浸位置在40秒内变化超过三分之一的墙体高度,则认为水浸位置在急剧的攀升,车辆处于水浸的危险状态。In this embodiment, it is also possible to judge whether the vehicle is in a dangerous state of flooding by judging the change of the flooding position. For example, take the wall as a reference target, set the preset time to 40 seconds, and identify whether the change of the flood position within 40 seconds exceeds one-third of the wall height. If it is recognized that the flooding position changes by more than one-third of the wall height within 40 seconds, it is considered that the flooding position is rising sharply, and the vehicle is in a dangerous state of flooding.

亦既是说,水浸位置只要超过参照目标的预设位置或者水浸位置的变化值在设定时间超过预设值,则都认为车辆处于水浸的危险状态。That is to say, as long as the flooding position exceeds the preset position of the reference target or the change value of the flooding position exceeds the preset value within the set time, the vehicle is considered to be in a dangerous state of flooding.

水浸预警模块406:认为车辆处于水浸的危险状态中时,发出水浸预警信号通知用户。Flooding warning module 406: when the vehicle is considered to be in a dangerous state of flooding, send out a flooding warning signal to notify the user.

本实施例中,水浸预警信号通过2G/3G/4G网络发送至用户的移动终端。In this embodiment, the flood warning signal is sent to the user's mobile terminal through the 2G/3G/4G network.

进一步地,装置还包括:Further, the device also includes:

车内人员识别模块407,用于获取车辆内部的图像画面,判断车辆内部是否有人,如果车辆内有人,则发出求救信号,通知预设的相关人员。The vehicle occupant identification module 407 is used to acquire the image picture inside the vehicle, judge whether there is a person inside the vehicle, and if there is a person in the vehicle, send a distress signal and notify the preset relevant personnel.

本实施例中,预设的相关人员可以为公安、消防、医院等机构的救援人员。求救信号和预警信号是不同的,求救信号主要是针对在车辆被水浸,并且车内有人员被困的时候,向救援人员发出的求救信号。求救信号主要通过2G/3G/4G的通信模块进行发送,或者,通过基站发送广播的方式进行。In this embodiment, the preset relevant personnel may be rescue personnel from institutions such as public security, firefighting, and hospitals. The distress signal and the early warning signal are different. The distress signal is mainly aimed at sending a distress signal to rescuers when the vehicle is flooded and people are trapped in the vehicle. The distress signal is mainly sent through the 2G/3G/4G communication module, or through the broadcasting method of the base station.

本实施例中,可以根据水浸位置相对参照目标的位置高度设置预警等级。比如,设置当水浸位置相对参照目标,在参照目标的第一位置时,进行第一等级水浸预警;设置当水浸位置相对参照目标,在参照目标的第二位置时,进行第二等级水浸预警;设置当水浸位置相对参照目标,在参照目标的第三位置时,进行第三等级水浸预警。其中,第一位置为参照目标的二分之一处,第二位置为参照目标的三分之二处,第三位置为参照目标的四分之三处。第一等级水浸预警为轻度水浸预警,第二等级水浸预警为中度水浸预警,第三等级水浸预警为重度水浸预警。In this embodiment, the warning level can be set according to the height of the flood position relative to the reference target. For example, set when the flooding position is relative to the reference target, when it is at the first position of the reference target, the first level of flood warning will be performed; when the flooding position is relative to the reference target, when it is at the second position of the reference target, the second level will be performed Flooding warning; set when the flooding position is relative to the reference target and is at the third position of the reference target, the third level of flooding warning will be performed. Wherein, the first position is one-half of the reference target, the second position is two-thirds of the reference target, and the third position is three-quarters of the reference target. The first level of flooding warning is mild flooding warning, the second level of flooding warning is moderate flooding warning, and the third level of flooding warning is severe flooding warning.

进一步地,装置还包括:设备控制模块408,用于控制车内预设门窗开启供用户逃生。Further, the device further includes: an equipment control module 408, configured to control the opening of preset doors and windows in the car for the user to escape.

本实施例中,当识别到车辆出现水浸,同时识别到车内有人被困的时候,控制车内预设门窗开启以帮助用户逃生。比如,控制车辆的天窗开启,这样用户就可以从顶部逃生了。In this embodiment, when it is recognized that the vehicle is flooded and a person is trapped in the vehicle, the preset doors and windows in the vehicle are controlled to open to help the user escape. For example, control the opening of the sunroof of the vehicle so that the user can escape from the top.

本公开还提出一种终端设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上所述车辆水浸预警方法的步骤。The present disclosure also proposes a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the steps of the vehicle flooding warning method described above are implemented.

处理器执行所述计算机程序时实现上述各个方法实施例中的步骤,例如图1和图2所示的步骤。或者,所述处理器执行所述计算机程序时实现上述各装置实施例中各模块/单元的功能,例如图3和图4的功能模块。When the processor executes the computer program, the steps in the foregoing method embodiments are implemented, for example, the steps shown in FIG. 1 and FIG. 2 . Or, when the processor executes the computer program, it realizes the functions of the modules/units in the above-mentioned device embodiments, for example, the functional modules in FIG. 3 and FIG. 4 .

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述视频显示装置中的执行过程。例如,所述计算机程序可以被分割成如图3和图4所示的模块,各模块具体功能如上面的说明。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the video display device. For example, the computer program can be divided into modules as shown in FIG. 3 and FIG. 4 , and the specific functions of each module are as described above.

车辆水浸预警装置可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备,也可以行车记录仪、运动相机等拍摄设备。所述车辆水浸预警装置/终端设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述示意图仅仅是视频显示装置的示例,并不构成对视频显示装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述视频显示装置还可以包括输入输出设备、网络接入设备、总线等。The vehicle flood warning device can be computing equipment such as desktop computers, notebooks, palmtop computers, and cloud servers, and can also be shooting equipment such as driving recorders and sports cameras. The vehicle flood warning device/terminal device may include, but not limited to, a processor and a memory. Those skilled in the art can understand that the schematic diagram is only an example of a video display device, and does not constitute a limitation to the video display device, and may include more or less components than those shown in the illustration, or combine some components, or have different Components, for example, the video display device may also include input and output devices, network access devices, buses, and the like.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述视频显示装置的控制中心,利用各种接口和线路连接整个视频显示装置的各个部分。The so-called processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., and the processor is the control center of the video display device, and utilizes various interfaces and lines to connect various parts of the entire video display device .

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述视频显示装置的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer programs and/or modules, and the processor implements the video by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. Displays various functions of the device. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like; the storage data area may store Data created based on the use of the mobile phone (such as audio data, phonebook, etc.), etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card , a flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

本公开提出一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如上所述车辆水浸预警方法的步骤。The present disclosure proposes a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned steps of the vehicle flooding early warning method are realized.

所述车辆水浸预警装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated modules/units of the vehicle flood warning device are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.

本申请的有益效果在于:通过获取车辆外的设定位置的图像画面,确定所述图像画面中的参照目标,然后识别图像画面中的相对于参照目标的水浸位置,当判断到水浸位置到达预设位置时进行水浸预警,这样就能够告知用户车辆正处于水浸的危险状态中,在水浸给车辆造成损失,甚至危害车内人员生命安全前进行报警,避免用户因为水浸所造成的巨大损失。The beneficial effects of the present application are: by acquiring an image frame of a set position outside the vehicle, determining the reference target in the image frame, and then identifying the flooding position in the image frame relative to the reference target, when the flooding position is judged When it reaches the preset position, it will perform a flood warning, so that the user can be informed that the vehicle is in a dangerous state of flooding, and the alarm will be issued before the flooding causes damage to the vehicle or even endangers the life safety of the people in the vehicle, so as to avoid the user being injured by flooding. caused huge losses.

本领域技术人员可以理解,上述实施方式中各种方法的全部或部分步骤可以通过程序来指令相关硬件完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器、随机存取存储器、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps of the various methods in the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, Random access memory, magnetic disk or optical disk, etc.

以上内容是结合具体的实施方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。对于本申请所属技术领域的普通技术人员来说,在不脱离本申请发明构思的前提下,还可以做出若干简单推演或替换。The above content is a further detailed description of the present application in conjunction with specific implementation modes, and it cannot be considered that the specific implementation of the present application is limited to these descriptions. For those of ordinary skill in the technical field to which the present application belongs, some simple deduction or replacement can also be made without departing from the inventive concept of the present application.

Claims (10)

1. a kind of vehicle water logging method for early warning, it is characterised in that methods described includes:
Obtain the image frame of the setting position outside vehicle;
Determine the reference object in described image picture;
Identify the water logging position relative to the reference object in image frame;
Judge whether the water logging position reaches predeterminated position, if it is, thinking that the vehicle is in the precarious position of water logging In, send water logging pre-warning signal and notify user.
2. vehicle water logging method for early warning as claimed in claim 1, it is characterised in that methods described also includes:
Judge whether the change of the water logging position exceedes default changing value in preset time, if it is, thinking the car In water logging precarious position in, send water logging pre-warning signal and notify user.
3. vehicle water logging method for early warning as claimed in claim 1, it is characterised in that be in water logging determining the vehicle After the step of precarious position, methods described also includes:
Obtain the image frame of vehicle interior, judge in vehicle whether someone, if someone in vehicle, sends an SOS, Notify default related personnel.
4. vehicle water logging method for early warning as claimed in claim 3, it is characterised in that methods described also includes:Control is in-car pre- If opening of doors and windows is escaped for user.
5. a kind of vehicle water logging prior-warning device, it is characterised in that described device includes:
Image collection module, for obtaining the image frame of the setting position outside vehicle;
Reference object determining module, for determining the reference object in described image picture;
Water logging location identification module, for identifying the water logging position relative to the reference object in image frame;
Water logging position judging module, for judging whether the water logging position reaches predeterminated position, if it is, thinking the car In water logging precarious position in, send water logging pre-warning signal and notify user.
6. vehicle water logging prior-warning device as claimed in claim 5, it is characterised in that described device also includes:
Water logging change in location judge module, for judging whether the change of the water logging position exceedes default become in preset time Change value, if it is, thinking that the vehicle is in the precarious position of water logging, send water logging pre-warning signal and notify user.
7. vehicle water logging prior-warning device as claimed in claim 5, it is characterised in that described device also includes:
Occupant's identification module, for obtaining the image frame of vehicle interior, judge in vehicle whether someone, if in vehicle Someone, then send an SOS, notify default related personnel.
8. vehicle water logging prior-warning device as claimed in claim 7, it is characterised in that described device also includes:
Device control module, for controlling in-car default opening of doors and windows to be escaped for user.
9. a kind of terminal device, it is characterised in that including memory, processor and storage in memory and can be in processor The computer program of upper operation, the step of method as described in Claims 1-4 is realized during computing device computer program.
A kind of 10. computer-readable recording medium, it is characterised in that computer-readable recording medium storage has computer program, Realized when computer program is executed by processor such as the step of the method as described in as described in Claims 1-4.
CN201710981708.3A 2017-10-20 2017-10-20 Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium Pending CN107798817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710981708.3A CN107798817A (en) 2017-10-20 2017-10-20 Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710981708.3A CN107798817A (en) 2017-10-20 2017-10-20 Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107798817A true CN107798817A (en) 2018-03-13

Family

ID=61533393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710981708.3A Pending CN107798817A (en) 2017-10-20 2017-10-20 Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107798817A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110796834A (en) * 2019-11-01 2020-02-14 广州小鹏汽车科技有限公司 Vehicle flooding alarm method and system, vehicle and readable storage medium
CN111031114A (en) * 2019-11-29 2020-04-17 万翼科技有限公司 Vehicle water immersion protection method, equipment and system
CN111726582A (en) * 2020-06-22 2020-09-29 曹婷 Waterproof outdoor monitoring system and method applying numerical analysis
CN113950435A (en) * 2019-06-25 2022-01-18 本田技研工业株式会社 Vehicle, vehicle control method, and program
CN115457742A (en) * 2022-08-15 2022-12-09 广东新电电力科技有限公司 Water immersion sensor alarm device for alarm based on big data analysis

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1976296A1 (en) * 2006-01-20 2008-10-01 Sumitomo Electric Industries, Ltd. Infrared imaging system
CN202703483U (en) * 2012-07-26 2013-01-30 深圳市赛格导航科技股份有限公司 Flooding alarm device for motor vehicle
WO2013060830A2 (en) * 2011-10-27 2013-05-02 Land Rover Wading apparatus and method
CN104477121A (en) * 2014-11-12 2015-04-01 来安县新元机电设备设计有限公司 Automobile wading security reminding method and device
CN205281749U (en) * 2015-08-31 2016-06-01 深圳奥特迅电力设备股份有限公司 Safety monitoring system in car
CN106080476A (en) * 2016-06-14 2016-11-09 北京汽车股份有限公司 Vehicle falling into water self-help apparatus, method and vehicle
CN107117125A (en) * 2017-04-27 2017-09-01 无锡北斗星通信息科技有限公司 Level testing methods
CN107128269A (en) * 2017-04-27 2017-09-05 无锡北斗星通信息科技有限公司 A kind of rescue mode

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1976296A1 (en) * 2006-01-20 2008-10-01 Sumitomo Electric Industries, Ltd. Infrared imaging system
WO2013060830A2 (en) * 2011-10-27 2013-05-02 Land Rover Wading apparatus and method
CN202703483U (en) * 2012-07-26 2013-01-30 深圳市赛格导航科技股份有限公司 Flooding alarm device for motor vehicle
CN104477121A (en) * 2014-11-12 2015-04-01 来安县新元机电设备设计有限公司 Automobile wading security reminding method and device
CN205281749U (en) * 2015-08-31 2016-06-01 深圳奥特迅电力设备股份有限公司 Safety monitoring system in car
CN106080476A (en) * 2016-06-14 2016-11-09 北京汽车股份有限公司 Vehicle falling into water self-help apparatus, method and vehicle
CN107117125A (en) * 2017-04-27 2017-09-01 无锡北斗星通信息科技有限公司 Level testing methods
CN107128269A (en) * 2017-04-27 2017-09-05 无锡北斗星通信息科技有限公司 A kind of rescue mode

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950435A (en) * 2019-06-25 2022-01-18 本田技研工业株式会社 Vehicle, vehicle control method, and program
CN113950435B (en) * 2019-06-25 2024-03-15 本田技研工业株式会社 Vehicle, vehicle control method and storage medium
US12202490B2 (en) 2019-06-25 2025-01-21 Honda Motor Co., Ltd. Vehicle, vehicle control method, and program
CN110796834A (en) * 2019-11-01 2020-02-14 广州小鹏汽车科技有限公司 Vehicle flooding alarm method and system, vehicle and readable storage medium
CN110796834B (en) * 2019-11-01 2021-10-08 广州小鹏汽车科技有限公司 Vehicle flooding alarm method and system, vehicle and readable storage medium
CN111031114A (en) * 2019-11-29 2020-04-17 万翼科技有限公司 Vehicle water immersion protection method, equipment and system
CN111726582A (en) * 2020-06-22 2020-09-29 曹婷 Waterproof outdoor monitoring system and method applying numerical analysis
CN115457742A (en) * 2022-08-15 2022-12-09 广东新电电力科技有限公司 Water immersion sensor alarm device for alarm based on big data analysis
CN115457742B (en) * 2022-08-15 2024-04-19 广东新电电力科技有限公司 Water logging sensor alarm device based on big data analysis carries out warning

Similar Documents

Publication Publication Date Title
CN107798817A (en) Vehicle water logging method for early warning, vehicle water logging prior-warning device, terminal device and computer-readable recording medium
EP3561765B1 (en) Dynamic tone mapping method, mobile terminal, and computer readable storage medium
CN101247479B (en) An automatic exposure method based on the target area in the image
US20210209378A1 (en) Traffic light image processing
CN108288312A (en) Driving behavior determines method and device
US9666161B2 (en) Method and system for replacing theme of a mobile terminal on the basis of a user's clothes color
CN113052048B (en) Traffic event detection method and device, road side equipment and cloud control platform
US10664711B2 (en) Vehicle prompt apparatus and operating method thereof
KR20210047490A (en) Fire risk predication system using unmanned aerial vehicle and method thereof
WO2018031104A1 (en) Methods and systems of maintaining object trackers in video analytics
JP2022120116A (en) Traffic light identification method, apparatus, electronic device, storage medium, computer program, roadside device, cloud control platform, and vehicle road cooperative system
US20230020155A1 (en) Target Recognition Method and Apparatus
US11146826B2 (en) Image filtering method and apparatus
WO2018214974A1 (en) Method and system for displaying dynamic condition of pedestrians
CN114943948A (en) Blind zone pedestrian detection method, system, vehicle and storage medium
CN118172284B (en) Processing method, device, medium and equipment for visual data of remote computer
CN101409004A (en) Safety defense monitoring method based on Symbian intelligent mobile phone platform
Sefat et al. Implementation of vision based intelligent home automation and security system
CN113099101B (en) Camera shooting parameter adjusting method and device and electronic equipment
CN113505674B (en) Face image processing method and device, electronic equipment and storage medium
US20170345179A1 (en) Methods and systems of determining costs for object tracking in video analytics
US10573014B2 (en) Image processing system and lens state determination method
CN114037763A (en) Target object missing detection method and device, storage medium and electronic equipment
CN104720759B (en) Comprehensive detecting system for states of crane operators
CN112395980A (en) Power transmission line monitoring method, device, equipment and medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313