CN111222421A - Method and device for detecting personnel state in water area and electronic equipment - Google Patents

Method and device for detecting personnel state in water area and electronic equipment Download PDF

Info

Publication number
CN111222421A
CN111222421A CN201911362532.9A CN201911362532A CN111222421A CN 111222421 A CN111222421 A CN 111222421A CN 201911362532 A CN201911362532 A CN 201911362532A CN 111222421 A CN111222421 A CN 111222421A
Authority
CN
China
Prior art keywords
water
target person
state
target
preset
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
CN201911362532.9A
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.)
Universal Ubiquitous Technology Co ltd
Original Assignee
Universal Ubiquitous 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 Universal Ubiquitous Technology Co ltd filed Critical Universal Ubiquitous Technology Co ltd
Priority to CN201911362532.9A priority Critical patent/CN111222421A/en
Publication of CN111222421A publication Critical patent/CN111222421A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/53Recognition of crowd images, e.g. recognition of crowd congestion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • 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
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/08Alarms for ensuring the safety of persons responsive to the presence of persons in a body of water, e.g. a swimming pool; responsive to an abnormal condition of a body of water

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the disclosure provides a method and a device for detecting the state of a person in a water area and electronic equipment, belonging to the technical field of image processing, wherein the method comprises the following steps: acquiring an image of a preset area, wherein the preset area comprises a target water area; detecting the water state of each target person in the preset area, wherein the water state is any one of swimming in water and diving; if the water state of the target person is diving, judging whether the water state of the target person is a preset danger type; if the water state of the target person is a preset danger type, sending alarm information to a rescue terminal; and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal. By the aid of the processing scheme, the personnel state detection and detection information feedback efficiency and the accident prevention effect in the water area are improved.

Description

Method and device for detecting personnel state in water area and electronic equipment
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and an apparatus for detecting states of people in a water area, and an electronic device.
Background
At present, the detection and application of personnel states in a water area are quite popular, and an image acquisition device is usually arranged at the periphery of the water area and used for acquiring images in a water area scene, so that specific information can be acquired after the personnel in the water area are in danger. The existing detection technology for prevention cannot effectively judge the dangerous case of the personnel in the water area, and cannot early warn and arrange proper rescue in time when the dangerous case occurs to the personnel in the water area, so that the accident prevention effect is poor.
Therefore, the existing method for detecting the state of the personnel in the water area has the problems of poor detection and detection information feedback efficiency and poor accident prevention effect.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a method for detecting a state of a person in a water area, which at least partially solves the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a method for detecting a state of a person in a water area, where the method includes:
acquiring an image of a preset area, wherein the preset area comprises the target water area;
detecting the water state of each target person in the preset area, wherein the water state is any one of swimming in water and diving;
if the water state of the target person is diving, judging whether the water state of the target person is a preset danger type;
if the water state of the target person is a preset danger type, sending alarm information to a rescue terminal;
and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the preset area includes the target water area and a peripheral onshore area surrounding the target water area;
before the step of detecting the water condition of each target person located within the preset area, the method further comprises:
judging whether the target personnel enter the target water area or not according to the acquired image of the preset area;
if the target person enters the target water area, detecting the water state of the target person;
and if the target person is in the peripheral onshore region and does not enter the target water area or enters the peripheral onshore region from the target water area, not detecting the water state of the target person.
According to a specific implementation manner of the embodiment of the present disclosure, the step of detecting the water state of each target person located in the preset area includes:
extracting key position images of the target personnel from the acquired images in the target water area;
judging whether the key part of the target person enters the water surface or not;
if the key part of the target person enters the water surface, determining that the water state of the target person is a diving state;
and if the key part of the target person does not enter the water surface, determining that the water state of the target person is the water swimming state.
According to a specific implementation manner of the embodiment of the present disclosure, if the water state of the target person is diving, the step of determining whether the state of the target person is a preset danger type includes:
when the water state of the target person is detected to be a diving state, recording the duration of the target person in the diving state;
judging whether the duration is greater than or equal to a preset threshold value or not;
if the duration is greater than or equal to a preset threshold, confirming that the water state of the target person is a preset dangerous type, and sending alarm information to a rescue terminal;
and if the duration is less than a preset threshold, determining that the water state of the target person is not a preset danger type, and forbidding sending alarm information to the rescue terminal.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of determining whether the duration is greater than or equal to a preset threshold, the method further includes:
acquiring the maximum duration of a preset number of sample personnel in a diving state;
and calculating the average duration as the preset threshold according to the maximum duration of all the sample personnel in the diving state.
According to a specific implementation manner of the embodiment of the present disclosure, after the step of sending the alarm information to the rescue terminal if the state of the target person is the preset danger type, the method further includes:
collecting coordinates corresponding to the target personnel;
judging whether coordinates of the rescuers are consistent with the coordinates corresponding to the target person within a preset time period;
if the coordinates of the rescuers are consistent with the coordinates corresponding to the target person within a preset time period, ending the rescue action;
if the coordinates of the rescuers are not consistent with the coordinates corresponding to the target personnel within a preset time period, the coordinates corresponding to the target personnel are sent to a rescue robot, so that the rescue robot applies rescue actions to the target personnel from the coordinate positions corresponding to the target personnel.
According to a specific implementation manner of the embodiment of the present disclosure, if the coordinate of the rescue worker is not consistent with the coordinate corresponding to the target worker within a preset time period, the step of sending the coordinate corresponding to the target worker to the rescue robot so that the rescue robot applies a rescue action to the target worker to the coordinate position corresponding to the target worker includes:
and controlling the rescue robot to move to the coordinate corresponding to the target person, and sending out the rescue goods.
In a second aspect, an embodiment of the present disclosure provides an apparatus for detecting a state of a person in a water area, including:
the acquisition module is used for acquiring an image of a preset area, wherein the preset area comprises the target water area;
the detection module is used for detecting the water state of each target person in the preset area, wherein the water state is any one of swimming and diving;
the judging module is used for judging whether the water state of the target person is a preset danger type or not if the water state of the target person is diving;
the alarm module is used for sending alarm information to the rescue terminal if the water state of the target person is a preset danger type;
and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of detecting a state of a person in a body of water in any of the implementations of the first aspect or the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for detecting a state of a person in a body of water in any of the implementations of the first aspect or the first aspect.
In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for detecting a state of a person in a water area in the first aspect or any implementation manner of the first aspect.
The method for detecting the personnel state in the water area comprises the steps of collecting images of a preset area, wherein the preset area comprises a target water area; detecting the water state of each target person in the preset area, wherein the water state is any one of swimming in water and diving; if the water state of the target person is diving, judging whether the water state of the target person is a preset danger type; if the water state of the target person is a preset danger type, sending alarm information to a rescue terminal; and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal. By the aid of the scheme, personnel state detection and detection information feedback efficiency and accident prevention effects in the water area are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for detecting a state of a person in a water area according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another method for detecting a status of a person in a water area according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another method for detecting a status of a person in a water area according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of another method for detecting a status of a person in a water area according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a device for detecting a state of a person in a water area according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method for detecting the state of a person in a water area. The method for detecting the state of the person in the water area provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrally arranged in a server, a terminal device and the like.
Referring to fig. 1, a method for detecting a state of a person in a water area according to an embodiment of the present disclosure includes:
s101, collecting an image of a preset area, wherein the preset area comprises the target water area.
The method for detecting the state of the person in the water area, provided by the embodiment of the disclosure, can be applied to the process of detecting the state of the person in the water area scenes such as a swimming pool and a small reservoir.
The electronic equipment can be internally provided with an image acquisition module or externally connected with image acquisition equipment for acquiring images of a preset area to be detected, and the image acquisition module or the image acquisition equipment can be directly sent to the processor for subsequent analysis and processing operations after acquiring the images in the preset area.
In this embodiment, the water area scene to be detected is set as a swimming pool, and the image acquisition area corresponding to the water area scene is defined as a preset area of the water area scene, where the preset area may at least include a swimming area of the water area scene, and of course, may also include an area on the shore around the swimming pool, an entrance and exit direction of the swimming pool, and the like.
S102, detecting the water state of each target person in the preset area, wherein the water state is any one of swimming and diving.
After the images of the preset area are collected, each target person in the preset area can be detected through a face recognition technology, and the water state of each target person in the preset area is obtained, wherein the water state can be divided into a swimming state and a diving state.
For example, the electronic device may identify a face image of a person existing in the image by using a face recognition technology to determine how many persons exist in the preset region, specifically, the electronic device may collect sample images preset in different water states in advance, train a person state detection model in the water region by using a lightweight convolutional neural network, and determine the water state of each target person according to the collected image of the preset region.
S103, if the water state of the target person is diving, judging whether the water state of the target person is a preset danger type.
For example, in consideration of the situation that the state detection is different due to different actions of people or due to factors such as illumination and shielding in the daily detection process, in order to ensure the detection accuracy and efficiency, when the underwater state of the target person is detected to be the diving state, the preset danger type can be set, and then whether the underwater state of the target person is the preset danger type is judged according to the image acquisition result, so that the next operation flow is determined.
And if the water state of the target person is a preset danger type, executing step S104, and sending alarm information to a rescue terminal.
And if the electronic equipment judges that the water state of the target person is the preset danger type, determining that the water state of the target person is the same as the preset danger type, indicating that a dangerous case occurs in a water area scene, and sending alarm information to a rescue terminal.
And if the water state of the target person is not the preset danger type, executing step S105, and forbidding sending alarm information to the rescue terminal.
And if the electronic equipment judges that the water state of the target person is not the preset danger type, determining that the water state of the target person is different from the preset danger type, and forbidding sending alarm information to the rescue terminal.
For example, after the state corresponding to the target person is determined, the state corresponding to the target person is compared with a preset danger type, whether the state of the target person meets the preset danger type or not is judged, if yes, the state of the target person is determined to be the preset danger type, alarm information is sent to a rescue terminal, and if not, the state of the target person is determined not to be the preset danger type, and the alarm information is forbidden to be sent to the rescue terminal.
The method for detecting the state of the personnel in the water area provided by the embodiment of the disclosure aims at detecting the state of the personnel in the water area scene, the number of the personnel in the water area and the water state of all the personnel in the water area are determined by collecting images in a preset area, and whether alarm is given or not is determined by judging whether each personnel in the water area is a preset danger type or not. The method provided by the embodiment can detect the states of all the personnel in the water area in the scene in real time and compare the states with the preset danger types, and sends an alarm once the dangerous case occurs, so that the efficiency of detecting the states of the personnel in the water area and feeding back the detection information and the accident prevention effect are improved.
On the basis of the above embodiment, as shown in fig. 2, the preset area includes the target water area and a peripheral onshore area surrounding the target water area;
before the detecting of the water presence status of each target person located in the preset area in step S102, the method further includes:
s201, judging whether the target person enters the target water area or not according to the acquired image of the preset area;
the preset area can comprise the target water area and a peripheral on-shore area, and the electronic equipment judges whether the target person enters the target water area or not according to the acquired image corresponding to the preset area, so that the next operation process is determined.
And if the target person enters the target water area, executing step S202 to detect the water state of the target person.
If the target person is in the peripheral onshore region and does not enter the target water area or enters the peripheral onshore region from the target water area, step S203 is executed, and the water state of the target person is not detected.
For example, when the target person enters the target water area in the acquired image corresponding to the preset area, the in-water state of the target person in the target water area starts to be detected, and if the target person is in the peripheral shore area in the acquired image corresponding to the preset area, it is indicated that the target person is not in the water area, and the in-water state of the target person in the preset area is not detected.
On the basis of the above embodiment, the step of detecting the water condition of each target person located in the preset area in step S102 includes:
extracting key position images of the target personnel from the acquired images in the target water area;
and extracting key part images of the target person from the acquired images in the target water area, wherein the key part images can comprise head images, leg images and hand images, and certainly can also comprise part images such as shoulder images and the like.
In specific implementation, the key part of the target person can be set as the head, and the key part image of the target person is extracted from the acquired image in the target water area, namely the extracted head image.
Judging whether the key part of the target person enters the water surface or not;
and judging whether the key part of the target person enters the water surface or not according to the extracted key part image corresponding to the target person, thereby determining the next operation flow.
If the key part of the target person enters the water surface, determining that the water state of the target person is a diving state;
and if the key part of the target person does not enter the water surface, determining that the water state of the target person is the water swimming state.
For example, if the head image of the target person is extracted from the acquired image of the target person in the target water area and the head of the target person is judged to enter the water surface, the water state of the target person is determined to be the diving state, and if the head image of the target person is extracted from the acquired image of the target person in the target water area and the head of the target person is judged not to enter the water surface, the water state of the target person is determined to be the swimming state in water.
In another specific embodiment, as shown in fig. 3, the step of determining whether the state of the target person is a preset danger type if the underwater state of the target person is diving in step S103 includes:
s301, when the underwater state of the target person is detected to be a diving state, recording the duration of the target person in the diving state;
when the electronic equipment detects that the key part of the target person enters the water surface, the water state of the target person is determined to be the diving state, and the duration of the target person in the diving state is recorded from the moment when the key part of the target person enters the water surface.
S302, judging whether the duration is greater than or equal to a preset threshold value;
optionally, before the step of determining whether the duration is greater than or equal to a preset threshold, the method further includes:
acquiring the maximum duration of a preset number of sample personnel in a diving state;
and calculating the average duration as the preset threshold according to the maximum duration of all the sample personnel in the diving state.
For example, the maximum duration of the underwater state of the preset 100 persons in the target water area is collected, then the average duration is calculated according to the collected maximum duration of the underwater state of the preset 100 persons in the target water area, and the average duration is defined as the comparison between the preset threshold and the duration of the underwater state of the target person in the target water area, so as to determine the next operation flow.
If the duration is greater than or equal to a preset threshold, executing step S303, confirming that the water state of the target person is a preset danger type, and sending alarm information to a rescue terminal.
If the duration is less than the preset threshold, executing step S304, confirming that the water state of the target person is not the preset danger type, and prohibiting sending of alarm information to the rescue terminal.
In specific implementation, if the preset threshold is 60 seconds, if the duration of the target person under the water in the target water area is 45 seconds, and then the target person is not under the water, it is indicated that the target person is not in a dangerous situation, and no alarm information is sent to the rescue terminal, if the duration of the target person under the water in the target water area is 60 seconds, it is determined that the target person is in a dangerous situation, and the electronic device sends the alarm information to the rescue terminal, and certainly, the preset threshold can be set to be lower in consideration of safety.
In another embodiment, as shown in fig. 4, after the step of sending an alarm message to a rescue terminal if the state of the target person is a preset danger type in step S104, the method further includes:
s401, collecting coordinates corresponding to the target person;
the electronic equipment can be provided with an infrared distance measuring device, and the coordinates corresponding to the target person are obtained by calculating the distance between the target person and the edge of the target water area from multiple angles.
For example, infrared distance measuring devices may be provided on four sides of the target water area to measure the distances between the target person and the edges of the target water area, respectively, to obtain coordinates corresponding to the target person, or, of course, an infrared distance measuring device may be provided around the target water area at a right angle to input the distance between the target person and the edges of the target water area, respectively, at a right angle, to calculate the distance between the target person and the edges of the target water area, and to obtain coordinates corresponding to the target person.
S402, judging whether coordinates of rescuers are consistent with corresponding coordinates of the target personnel within a preset time period;
and calculating the coordinate corresponding to the rescue worker in a preset time period according to the calculated coordinate corresponding to the target worker, and judging whether the coordinate corresponding to the rescue worker is consistent with the coordinate corresponding to the target worker, so as to determine whether the rescue worker carries out timely rescue on the target worker, and further determine the next operation flow.
In specific implementation, the coordinates corresponding to the rescuers can be calculated within a preset 30-second time period, and then whether the coordinates corresponding to the rescuers are consistent with the coordinates corresponding to the target person or not is judged.
If the coordinates of the rescuers are consistent with the coordinates corresponding to the target person within a preset time period, executing a step S403, and ending the rescue action;
if the coordinates of the rescue person are not consistent with the coordinates corresponding to the target person within a preset time period, step S404 is executed, and the coordinates corresponding to the target person are sent to a rescue robot, so that the rescue robot applies a rescue action to the target person from the coordinate position corresponding to the target person.
For example, if it is detected that the coordinates corresponding to the rescuers are consistent with the coordinates corresponding to the target person within a preset time period of 30 seconds, it is determined that the rescuers have arrived at the dangerous situation for rescue. If the fact that the coordinate corresponding to the rescue worker is inconsistent with the coordinate corresponding to the target worker is detected within 30 seconds of a preset time period, the fact that the rescue worker does not arrive at a dangerous situation place for rescue or the rescue is not timely is confirmed, and the electronic equipment sends the coordinate corresponding to the target worker to the rescue robot, so that the rescue robot exerts rescue action on the target worker from the coordinate position corresponding to the target worker.
Further, if the coordinates of the rescue workers are not consistent with the coordinates corresponding to the target workers within the preset time period, sending the coordinates corresponding to the target workers to a rescue robot so that the rescue robot can apply rescue actions to the target workers from the coordinate positions corresponding to the target workers, and the steps include:
and controlling the rescue robot to move to the coordinate corresponding to the target person, and sending out the rescue goods.
For example, after receiving the coordinates corresponding to the target person, the rescue robot detects that the rescue robot moves to the coordinate location corresponding to the target person, and sends out rescue goods such as life buoys or drugs.
According to the method and the device for detecting the state of the water, the steps of detecting the state of the water of the target person, presetting the danger type, judging whether the target person is in the danger type and the like are adopted, the alarm information is sent in time when the dangerous case of the person in the water area is detected, the rescue robot is used for rescuing under the condition that the rescue person is not in place, and the state detection and detection information feedback efficiency and the accident prevention effect of the person in the water area are improved.
In correspondence with the above method embodiment, referring to fig. 5, the disclosed embodiment further provides an apparatus 50 for detecting the state of a person in a water area, including:
the acquisition module 501 is configured to acquire an image of a preset area, where the preset area includes the target water area;
a detecting module 502, configured to detect a water state of each target person located in the preset area, where the water state is any one of swimming, diving and drowning;
a determining module 503, configured to determine whether the water state of the target person is a preset danger type if the water state of the target person is diving;
the alarm module 504 is configured to send alarm information to a rescue terminal if the water state of the target person is a preset danger type;
and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal.
The apparatus shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of detecting a state of a person in water in an embodiment of the method described above.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for detecting a state of a person in a water area in the aforementioned method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of detecting a state of a person in a body of water in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of detecting a state of a person in a body of water, the method comprising:
acquiring an image of a preset area, wherein the preset area comprises a target water area;
detecting the water state of each target person in the preset area, wherein the water state is any one of swimming in water and diving;
if the water state of the target person is diving, judging whether the water state of the target person is a preset danger type;
if the water state of the target person is a preset danger type, sending alarm information to a rescue terminal;
and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal.
2. The method of claim 1, wherein the predetermined area comprises the target body of water and a perimeter onshore area surrounding the target body of water;
before the step of detecting the water condition of each target person located within the preset area, the method further comprises:
judging whether the target personnel enter the target water area or not according to the acquired image of the preset area;
if the target person enters the target water area, detecting the water state of the target person;
and if the target person is in the peripheral onshore region and does not enter the target water area or enters the peripheral onshore region from the target water area, not detecting the water state of the target person.
3. The method of claim 2, wherein the step of detecting the water condition of each target person located within the preset area comprises:
extracting key position images of the target personnel from the acquired images in the target water area;
judging whether the key part of the target person enters the water surface or not;
if the key part of the target person enters the water surface, determining that the water state of the target person is a diving state;
and if the key part of the target person does not enter the water surface, determining that the water state of the target person is the water swimming state.
4. The method of claim 3, wherein the step of determining whether the state of the target person is a preset danger type if the water state of the target person is diving comprises:
when the water state of the target person is detected to be a diving state, recording the duration of the target person in the diving state;
judging whether the duration is greater than or equal to a preset threshold value or not;
if the duration is greater than or equal to a preset threshold, confirming that the water state of the target person is a preset dangerous type, and sending alarm information to a rescue terminal;
and if the duration is less than a preset threshold, determining that the water state of the target person is not a preset danger type, and forbidding sending alarm information to the rescue terminal.
5. The method of claim 4, wherein prior to the step of determining whether the duration is greater than or equal to a preset threshold, the method further comprises:
acquiring the maximum duration of a preset number of sample personnel in a diving state;
and calculating the average duration as the preset threshold according to the maximum duration of all the sample personnel in the diving state.
6. The method of claim 1, wherein after the step of sending an alarm message to a rescue terminal if the status of the target person is a preset danger type, the method further comprises:
collecting coordinates corresponding to the target personnel;
judging whether coordinates of the rescuers are consistent with the coordinates corresponding to the target person within a preset time period;
if the coordinates of the rescuers are consistent with the coordinates corresponding to the target person within a preset time period, ending the rescue action;
and if the coordinates of the rescuers are not consistent with the coordinates corresponding to the target personnel within a preset time period, sending the coordinates corresponding to the target personnel to a rescue robot so that the rescue robot applies rescue actions to the target personnel from the coordinate position corresponding to the target personnel.
7. The method as claimed in claim 6, wherein if the coordinates of the rescue worker are not consistent with the coordinates corresponding to the target person within the preset time period, the step of sending the coordinates corresponding to the target person to a rescue robot so that the rescue robot applies a rescue action to the target person to the coordinate position corresponding to the target person comprises:
and controlling the rescue robot to move to the coordinate corresponding to the target person, and sending out the rescue goods.
8. A device for detecting the status of a person in a body of water, comprising:
the acquisition module is used for acquiring an image of a preset area, wherein the preset area comprises the target water area;
the detection module is used for detecting the water state of each target person in the preset area, wherein the water state is any one of swimming and diving;
the judging module is used for judging whether the water state of the target person is a preset danger type or not if the water state of the target person is diving;
the alarm module is used for sending alarm information to the rescue terminal if the water state of the target person is a preset danger type;
and if the water state of the target person is not a preset danger type, prohibiting sending alarm information to the rescue terminal.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of detecting a state of a person in water as claimed in any one of claims 1 to 7.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of detecting a state of a person in water as claimed in any one of the preceding claims 1 to 7.
CN201911362532.9A 2019-12-26 2019-12-26 Method and device for detecting personnel state in water area and electronic equipment Pending CN111222421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911362532.9A CN111222421A (en) 2019-12-26 2019-12-26 Method and device for detecting personnel state in water area and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911362532.9A CN111222421A (en) 2019-12-26 2019-12-26 Method and device for detecting personnel state in water area and electronic equipment

Publications (1)

Publication Number Publication Date
CN111222421A true CN111222421A (en) 2020-06-02

Family

ID=70827803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911362532.9A Pending CN111222421A (en) 2019-12-26 2019-12-26 Method and device for detecting personnel state in water area and electronic equipment

Country Status (1)

Country Link
CN (1) CN111222421A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115019402A (en) * 2022-08-09 2022-09-06 东莞先知大数据有限公司 Shore personnel dangerous behavior detection method, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000050245A (en) * 1998-03-31 2000-02-18 Seiko Instruments Inc Underwater photographing device, and underwater photographing and recording system for swimming race using the underwater photographing device
WO2002097758A1 (en) * 2001-05-25 2002-12-05 Nanyang Technological University, Centre For Signal Processing Drowning early warning system
CN101188745A (en) * 2007-11-27 2008-05-28 北京中星微电子有限公司 Intelligent drowning video monitoring system and method for natatorium
CN104134319A (en) * 2014-08-13 2014-11-05 新昌县东茗乡德创机械厂 Reservoir dangerous swimming area monitoring device
CN104574824A (en) * 2014-12-19 2015-04-29 苏州汉克山姆照明科技有限公司 Underwater searchlight with warning device
CN105401753A (en) * 2015-12-11 2016-03-16 马科峰 Anti-drowning system, anti-drowning method, anti-drowning swimming pool, and construction method and reconstruction method for swimming pool
CN106022230A (en) * 2016-05-11 2016-10-12 太原理工大学 Video-based detection method for drowning event in swimming pool
CN106920367A (en) * 2017-03-29 2017-07-04 联想(北京)有限公司 Safe swimming monitoring method and safe swimming monitoring device
CN109102678A (en) * 2018-08-30 2018-12-28 青岛联合创智科技有限公司 A kind of drowned behavioral value method of fusion UWB indoor positioning and video object detection and tracking technique
CN109584509A (en) * 2018-12-27 2019-04-05 太仓市小车东汽车服务有限公司 A kind of swimming pool drowning monitoring method combined based on infrared ray with visible light
CN110210323A (en) * 2019-05-09 2019-09-06 浙江大学 A kind of drowned behavior online recognition method based on machine vision
CN110363153A (en) * 2019-07-16 2019-10-22 广州图普网络科技有限公司 It paddles detection method, device, server and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000050245A (en) * 1998-03-31 2000-02-18 Seiko Instruments Inc Underwater photographing device, and underwater photographing and recording system for swimming race using the underwater photographing device
WO2002097758A1 (en) * 2001-05-25 2002-12-05 Nanyang Technological University, Centre For Signal Processing Drowning early warning system
CN101188745A (en) * 2007-11-27 2008-05-28 北京中星微电子有限公司 Intelligent drowning video monitoring system and method for natatorium
CN104134319A (en) * 2014-08-13 2014-11-05 新昌县东茗乡德创机械厂 Reservoir dangerous swimming area monitoring device
CN104574824A (en) * 2014-12-19 2015-04-29 苏州汉克山姆照明科技有限公司 Underwater searchlight with warning device
CN105401753A (en) * 2015-12-11 2016-03-16 马科峰 Anti-drowning system, anti-drowning method, anti-drowning swimming pool, and construction method and reconstruction method for swimming pool
CN106022230A (en) * 2016-05-11 2016-10-12 太原理工大学 Video-based detection method for drowning event in swimming pool
CN106920367A (en) * 2017-03-29 2017-07-04 联想(北京)有限公司 Safe swimming monitoring method and safe swimming monitoring device
CN109102678A (en) * 2018-08-30 2018-12-28 青岛联合创智科技有限公司 A kind of drowned behavioral value method of fusion UWB indoor positioning and video object detection and tracking technique
CN109584509A (en) * 2018-12-27 2019-04-05 太仓市小车东汽车服务有限公司 A kind of swimming pool drowning monitoring method combined based on infrared ray with visible light
CN110210323A (en) * 2019-05-09 2019-09-06 浙江大学 A kind of drowned behavior online recognition method based on machine vision
CN110363153A (en) * 2019-07-16 2019-10-22 广州图普网络科技有限公司 It paddles detection method, device, server and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
晋捷;王少伟;竺豪桢;马琳;: "泳池溺水报警器", 科学大众(中学版), no. 07 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115019402A (en) * 2022-08-09 2022-09-06 东莞先知大数据有限公司 Shore personnel dangerous behavior detection method, electronic equipment and storage medium
CN115019402B (en) * 2022-08-09 2022-11-25 东莞先知大数据有限公司 Shore personnel dangerous behavior detection method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106952303B (en) Vehicle distance detection method, device and system
CN109145680B (en) Method, device and equipment for acquiring obstacle information and computer storage medium
EP4036794A1 (en) Crowd overdensity prediction method and device
CN112232313A (en) Method and device for detecting wearing state of personal safety helmet in video and electronic equipment
CN109100537B (en) Motion detection method, apparatus, device, and medium
WO2022142786A1 (en) Driving behavior recognition method, and device and storage medium
CN111914656A (en) Personnel behavior detection method and device, electronic equipment and storage medium
CN110740315B (en) Camera correction method and device, electronic equipment and storage medium
CN113984078B (en) Arrival reminding method, device, terminal and storage medium
CN111222421A (en) Method and device for detecting personnel state in water area and electronic equipment
CN110781706B (en) Safety belt wearing detection method and device and computer readable storage medium
CN110879975B (en) Personnel flow detection method and device and electronic equipment
CN110852253A (en) Ladder control scene detection method and device and electronic equipment
CN111914784A (en) Method and device for detecting intrusion of trackside obstacle in real time and electronic equipment
CN111382694A (en) Face recognition method and device and electronic equipment
CN106323316A (en) Device and method for achieving navigation prompts
CN112036519B (en) Multi-bit sigmoid-based classification processing method and device and electronic equipment
CN112990017B (en) Smart city big data analysis method and monitoring system
CN113984109B (en) Track detection data correction method and device and electronic equipment
CN112218232B (en) Method and device for judging entrance and exit of electronic fence, storage medium and electronic equipment
CN110941455B (en) Active wake-up method and device and electronic equipment
CN113432620B (en) Error estimation method and device, vehicle-mounted terminal and storage medium
CN111681267B (en) Track anti-intrusion method based on image recognition
CN110234563B (en) Automatic driving method and device of disaster relief vehicle
CN111667175A (en) Personal safety warning method, system, platform and storage 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