CN113450534A - Device and method for detecting approach of children to dangerous goods - Google Patents
Device and method for detecting approach of children to dangerous goods Download PDFInfo
- Publication number
- CN113450534A CN113450534A CN202010231862.0A CN202010231862A CN113450534A CN 113450534 A CN113450534 A CN 113450534A CN 202010231862 A CN202010231862 A CN 202010231862A CN 113450534 A CN113450534 A CN 113450534A
- Authority
- CN
- China
- Prior art keywords
- distance
- dangerous goods
- children
- image
- child
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013459 approach Methods 0.000 title claims abstract description 26
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000001514 detection method Methods 0.000 claims description 31
- 239000013056 hazardous product Substances 0.000 claims description 15
- 238000013528 artificial neural network Methods 0.000 claims description 8
- 239000000463 material Substances 0.000 claims description 5
- 210000000988 bone and bone Anatomy 0.000 claims description 2
- 231100001261 hazardous Toxicity 0.000 abstract description 15
- 230000002349 favourable effect Effects 0.000 abstract description 3
- 235000013399 edible fruits Nutrition 0.000 description 6
- 208000019300 CLIPPERS Diseases 0.000 description 5
- 208000021930 chronic lymphocytic inflammation with pontine perivascular enhancement responsive to steroids Diseases 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 210000004247 hand Anatomy 0.000 description 3
- 210000003127 knee Anatomy 0.000 description 3
- 210000000707 wrist Anatomy 0.000 description 3
- 210000003423 ankle Anatomy 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 210000002411 hand bone Anatomy 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/02—Alarms for ensuring the safety of persons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/02—Alarms for ensuring the safety of persons
- G08B21/0202—Child monitoring systems using a transmitter-receiver system carried by the parent and the child
- G08B21/0225—Monitoring making use of different thresholds, e.g. for different alarm levels
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/02—Alarms for ensuring the safety of persons
- G08B21/0202—Child monitoring systems using a transmitter-receiver system carried by the parent and the child
- G08B21/0233—System arrangements with pre-alarms, e.g. when a first distance is exceeded
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10028—Range image; Depth image; 3D point clouds
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30232—Surveillance
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Emergency Management (AREA)
- Health & Medical Sciences (AREA)
- Child & Adolescent Psychology (AREA)
- General Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
- Emergency Alarm Devices (AREA)
Abstract
The embodiment of the application provides a device and a method for detecting that a child is close to a dangerous article. The camera module comprises a color camera and a depth camera, and is used for shooting RGB images and depth images corresponding to the RGB images; the controller is configured to: detecting whether children and dangerous goods exist in the RGB image; if both the children and the dangerous goods exist, calculating the approaching distance of the children and the dangerous goods according to the depth image; judging whether the approach distance is smaller than the safety distance; and if the approaching distance is less than the safe distance, sending a control signal for alarming. This application utilizes RGB image to carry out children and detects and hazardous articles and detect, when detecting out hazardous articles, judges based on the distance of degree of depth image between children and the hazardous articles, sends the control signal who carries out the warning when this distance is less than safe distance, when having solved unmanned nurse children, is difficult to discover children and is close to the problem of hazardous articles, through timely warning, is favorable to ensureing children's safety.
Description
Technical Field
The application relates to the technical field of child monitoring devices, in particular to a device and a method for detecting that a child is close to a dangerous article.
Background
With the development of the times, every family pays more and more attention to the growth and development of children, and the child care gradually becomes one of the core problems in the family. The young children can approach and take dangerous objects such as scissors, cutters, lighters and the like at any time due to the curiosity of the young children and the unknown property of the objects, and certain damage can be caused to the young children. Parents cannot keep the children around for 24 hours without time and ensure that the children do not contact dangerous goods within the activity range. Many parents choose to install the mode of surveillance camera head and carry out remote guardianship to children in at home, however, the surveillance camera head only can play the monitoring effect when the head of a family looks over, and the head of a family does not have the time to look over the surveillance camera head always, can't carry out the guardianship of full time quantum to children.
Disclosure of Invention
The application provides a device and a method for detecting that a child is close to a dangerous article, and aims to solve the problem of monitoring the child in a full time period.
In a first aspect, the present application provides a device for detecting the proximity of a child to a hazardous material, the device comprising: a camera module and a controller, wherein,
the camera module comprises a color camera and a depth camera, and is used for shooting RGB images and depth images corresponding to the RGB images;
the controller is in communicative connection with the camera module, the controller configured to: detecting whether children and dangerous goods exist in the RGB image; if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image; judging whether the approach distance is smaller than a safety distance; and if the approaching distance is less than the safe distance, sending a control signal for alarming.
In a second aspect, the present application provides a method of detecting the proximity of a child to a hazardous material, the method comprising:
shooting an RGB image and a depth image corresponding to the RGB image;
detecting whether children and dangerous goods exist in the RGB image;
if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image;
judging whether the approach distance is smaller than a safety distance;
and if the approaching distance is less than the safe distance, sending a control signal for alarming.
In a third aspect, the present application provides a method of detecting the proximity of a child to a hazardous material, the method comprising:
receiving an RGB image and a depth image corresponding to the RGB image;
detecting whether children and dangerous goods exist in the RGB image;
if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image;
judging whether the approach distance is smaller than a safety distance;
and if the approaching distance is less than the safe distance, sending a control signal for alarming.
The device and the method for detecting the approach of the children to the dangerous goods have the advantages that:
this application is through the depth map that shoots indoor RGB image and correspond, utilizes RGB image to carry out children and detects and hazardous articles detect, when detecting out hazardous articles, judges based on the distance between children and the hazardous articles of depth image pair, reports to the police when this distance is less than safe distance, when having solved unmanned nurse children, is difficult to discover children and is close to the problem of hazardous articles, through in time reporting to the police, is favorable to ensureing children's safety.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic structural diagram of an apparatus for detecting a child approaching a dangerous goods according to an embodiment of the present disclosure;
FIG. 2 is a schematic view of a framework according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart illustrating a method for detecting a child approaching a dangerous goods according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another method for detecting that a child is close to a dangerous goods according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a first aspect, the present embodiment provides a device for detecting a child approaching a dangerous good, which may include a camera module 100, a controller 200 and an alarm 300, as shown in fig. 1.
The camera module 100 includes a color camera 101 and a depth camera 102, wherein the color camera 101 can be used for capturing RGB images, and the depth camera 102 can be used for capturing depth images. The camera module 100 may be selected as a module in which the output color image and the depth image correspond to each other, where the correspondence includes the same time, angle of view, and resolution, the angle of view includes a horizontal angle of view and a vertical angle of view, and the horizontal angle of view of the color camera 101 and the vertical angle of view of the depth camera 102 need to be the same.
The controller 200 may be a processor having data processing capabilities. The controller 200 can be electrically connected with the camera module 100 to form an all-in-one machine, and the pictures shot by the camera module 100 can be obtained through cables; the controller 200 may also be connected to the camera module 100 in a wireless communication manner, and acquire pictures taken by the camera module 100 through a network, for example, the controller 200 may be a remote server or an intelligent terminal, and may control the camera module 100 through the communication network.
The camera module 100 or the all-in-one machine can be installed by a worker at a suitable position in the home of the user to photograph an area to be monitored. For convenience of description, the camera module 100 and the controller 200 are wirelessly connected for example.
After the camera module 100 is installed and started, the RGB image and the depth image are captured and uploaded to the controller 200. The shooting frame rate of the camera module 100 can be set to 30 frames per second, which can meet the detection requirement, and of course, other frame rates can be selected.
For RGB images captured by the color camera 101, the controller 200 may capture N frames of images in succession to form an image sequence, and perform the child detection and the threat detection on each frame of image in the image sequence, where N represents the selected number of captured images, for example, N may be selected to be 10, and for a color camera 101 with a capturing frame rate of 30 frames per second, the RGB images may be captured three times in one second, and 10 frames of RGB images are captured each time for the child detection and the threat detection.
The children detection can be based on human skeleton key point detection technology, such as openposition, human skeleton key point detection is carried out on an RGB image, feature mapping is created for the image through a convolutional neural network, then the image is divided into two branches to be processed, one branch extracts a body part position confidence map through the convolutional neural network, the other branch extracts skeleton key point affinity, the body part position confidence map and the skeleton key point affinity map are analyzed through a greedy inference algorithm, through even matching, associated skeleton key points are found, the associated skeleton key points are connected, and due to the fact that the skeleton key point affinity map has vectority, the associated skeleton key points obtained according to the even matching generally belong to the same person, and all the skeleton key points of the same person are combined into an integral skeleton of the same person. As shown in fig. 2, white dots are skeleton key points, and the skeleton key points detected in this embodiment are: the skeleton comprises a head skeleton key point, a neck skeleton key point, a left shoulder skeleton key point, a left elbow skeleton key point, a left wrist skeleton key point, a right shoulder skeleton key point, a right elbow skeleton key point, a right wrist skeleton key point, a left hip skeleton key point, a left knee skeleton key point, a left ankle skeleton key point, a right hip skeleton key point, a right knee skeleton key point, a right wrist skeleton key point, a left eye skeleton key point, a right eye skeleton key point, a left ear skeleton key point and a right ear skeleton key point, wherein white dots are connected through lines to form the skeleton of the human.
In practical implementation, adults and children can be distinguished according to the skeleton characteristics of the adults and children, for example, the skeleton size ratio of the adults and the skeleton size ratio of the children are different, and the ratio of the head to the body of the children is usually larger than that of the heads and the bodies of the adults. One way to distinguish adults from children is to: calculating the distance between the head skeleton key point and the neck skeleton key point, and recording as a first distance; calculating the distance between the key point of the left ankle and the key point of the left knee bone, and recording as a second distance; compare the ratio of first interval and second interval and children detection threshold value, if this ratio is greater than children and detects the threshold value, can regard this skeleton information to belong to children, if this ratio is less than or equal to children and detects the threshold value, can regard this skeleton information to belong to adult, wherein, children detect the threshold value and can set to 0.5. Of course, adults and children can be distinguished according to other ways, and the embodiment is not illustrated. In addition, if there is no other person at home than the child being monitored, a distinction between adults and children may not be necessary.
For the ith frame image f in the image sequenceiIf the human body exists, detecting the key points of the human skeleton, wherein i belongs to [1, N ]]When a child is detected, the position information (x ') of the key points of the two hand bones of the human body in the RGB image frame is output'ki,y′ki) K is 1, 2, wherein (x'ki,y′ki) Is a relative coordinate in a pixel coordinate system, wherein the pixel coordinate system is a coordinate system established in the RGB image. The positions of the hand skeleton key points of the frame are mapped to the depth image in combination with the depth image acquired by the depth camera 102, and the depth information H 'of the child hand skeleton key points is acquired'ki. Finally, outputting the detection result of each frame image { (x {)'ki,y′ki,H′ki) If the human body is an adult or a child, the determination method may refer to the above method for distinguishing an adult from a child, and details thereof are not repeated herein. If the image fiIf no human body exists, the detection result is not output, which indicates that no human body is detected, the frame of image is not further processed, and the next frame of image is obtained for detecting the children.
The detection of dangerous articles and the detection of children can be carried out synchronously so as to improve the detection efficiency. Hazardous article detection may be based on common article detection technologies such as Fast RCNN, SSD, YOLO series, etc. The scheme takes a Yolov3 algorithm as an example, and the algorithm scheme is as follows: inputting an image, extracting features through a characteristic neural network, outputting the feature image on three scales, extracting the detected target position and type according to the output of the network, and then obtaining final detection information through NMS (Non-Maximum Suppression) operation.
Based on the object detection technology, a large number of dangerous goods image samples of different types are respectively input into the neural network for training, and the finally obtained dangerous goods detection neural network can identify whether the input images contain dangerous goods or not and the type of each dangerous goods if the input images contain the dangerous goods.
And inputting the RGB image into a dangerous article detection neural network, and judging whether dangerous articles exist in the RGB image or not through the pre-trained dangerous article detection neural network. For a frame of RGB image fiAfter being compressed, the compressed image is input into a dangerous goods detection neural network, and dangerous goods information { (x) detected by the frame of RGB image is output0ij,y0ij,wij,hij,cij) J is 0, 1, wherein j is more than or equal to 0, and represents the j-th dangerous goods detected in the current image, x0ij,y0ijRespectively representing the i-th frame RGB image fiDetecting the j-th dangerous goods in the detection frame, wherein the relative coordinate of the center point in the pixel coordinate system, wij,hijThe size, x, of the width and height of the detection frame with respect to the entire RGB image0ij,y0ij,wij,hij∈[0,1],cijInformation indicating the type of the dangerous material, cijE.g. J. For example, assuming that the kinds of dangerous goods detectable by the neural network for detecting dangerous goods are scissors, fruit knives, lighters, etc., the frame RGB image fiTwo kinds of dangerous goods of scissors, fruit knife exist simultaneously in, then can export two dangerous goods detection information: c. Ci1And ci2,ci1Showing scissors, ci2Showing a fruit knife.
The center point (x) of the dangerous goods0ij,y0ij) Mapping to corresponding depth image, and outputting depth value H of center pointij,HijAnd the depth value representing the central point of the jth detection box in the ith frame of depth image grabbed by the depth camera 102.
Calculating the upper left corner (x) of the prediction frame of each dangerous goods under the pixel coordinate system by the following formula1ij,y1ij) Lower left corner (x)2ij,y2ij) Lower right corner (x)3ij,y3ij) The upper right corner (x)4ij,y4ij) Relative coordinates of these four vertices:
if xsijIf x is less than or equal to 0, let xsij0; if ysijWhen the value is less than or equal to 0, let ysij0; if xsijLet x be more than or equal to 1sij1 is ═ 1; if ysijWhen the value is more than or equal to 1, let ysij1 where s 1.
Available for each hazardous material { (x)1ij,y1ij),(x2ij,y2ij),(x3ij,y3ij),(x4ij,y4ij),HijDenotes its position and depth when the image fiAnd when no dangerous goods exist, the position and the depth are not output, the dangerous goods are not detected, the frame of image is not further processed, and the next frame of image is obtained for dangerous goods detection.
When both the child and the hazardous material are contained in the RGB image, the distance between the child and the hazardous material can be calculated based on the depth image.
The Euclidean distance is used for calculating the distance between the child and the dangerous goods. For image fiSince the shape of one of the dangerous goods may be different from the shape of the prediction box, there may be no dangerous goods at the four vertices of the prediction box, and the depth value of the center point of the prediction box may be taken as the depth value of the dangerous goods. Taking the minimum value of the distances between the key points of the hand and the four vertexes of the prediction frame of the dangerous goods as the distance between the child and the dangerous goods in the frame image, and calculating the formula as follows:
(2) in the formula, LijRepresenting image fiMiddle child and dangerous goods cijThe distance of (c).
Due to the image fiIn which a plurality of dangerous goods may exist, andtherefore, the distance between the child and each detected dangerous article is calculated, the minimum value is taken as the distance between the child and the nearest dangerous article, the nearest dangerous article is called as a dangerous article to be detected, and the type of the dangerous article nearest to the child is the type of the dangerous article to be detected.
(3) In the formula, LiRepresenting image fiThe distance between the child and the nearest dangerous goods, wherein the dangerous goods is the jth detected dangerous goods, and the category is cij。
When the distance between the dangerous goods to be detected and the children is far, the safety of the children is difficult to threaten, therefore, whether the distance between the children and the dangerous goods to be detected is smaller than the first distance epsilon or not is judged1And determining whether the dangerous goods to be detected have threat.
First distance epsilon1Can be selected to be 50 cm if Li<ε1Then the result of the frame is retained and the result of retaining the frame image is output as follows: (i, L)i,cij) I.e. (few frames, shortest distance, hazardous article category); otherwise, neglecting the frame result, and judging whether the dangerous goods to be detected in the next frame have threat.
The output result of the dangerous goods to be detected of a plurality of frames of images in one image sequence is as follows: { (1, 10, clipper), (3, 9.5, clipper), (4, 10.2, clipper), (5, 9, fruit knife) }, the meanings are as follows: the first frame of the image sequence detected a clipper, the distance between the child's hand and the clipper was 10 centimeters; the first frame detects the scissors, and the distance between the hands of the child and the scissors is 10 centimeters; in the third frame, the scissors are detected, and the distance between the hands of the children and the scissors is 9.5 centimeters; in the fourth frame, the scissors are detected, and the distance between the hands of the children and the scissors is 10.2 centimeters; in the fifth frame, a fruit knife was detected, and the distance between the child's hand and the fruit knife was 9 cm.
As shown in the output result of the image sequence, in an image sequence, the dangerous goods to be detected may have more than one category, and the output result of each frame may be integrated by a multi-frame fusion mechanism decision, so as to determine the dangerous goods to be detected and the category thereof closest to the child.
Suppose that n frame image results are retained in an image sequence, where n1The frame output result is of type C1N of1The shortest distance between the children and the dangerous goods C to be detected in the frame is respectivelyHas n2The frame output result is of type C2The shortest distance is respectivelyHas nmThe frame output result is of type CmThe shortest distance is respectivelyWherein n is1+n2+…+nm=n。
And (3) judging the dangerous goods type closest to the output result by adopting a majority voting rule, namely judging that the majority of the types in the output result is the dangerous goods type closest to the output result, wherein the calculation formula is as follows:
nα=maxa{nα,α=1,2,…,m} (4)
averaging the distances in the output results of all kinds, and taking the average as the distance between the dangerous goods and the children, wherein the calculation formula is as follows:
when the dangerous goods are close to the children, the alarm can be given to prompt the user to check the dangerous goods. Will be at distanceFrom a safe distance epsilon2And comparing to judge whether the distance between the dangerous goods and the children meets the alarm requirement. If it is notJudgment of children and dangerous goods cαIf the distance is very short, the dangerous variety information is output, and the alarm 300 is controlled to give an alarm; otherwise, the child is considered to have a certain distance from the dangerous goods, and the image is continuously captured.
Besides using the alarm 300 to send out an alarm, the controller 200 can also generate alarm information, and the alarm information is sent to a mobile communication terminal of a user, such as a smart phone, so that the user can conveniently check the alarm information in time.
To further explain the detection process of a child approaching a dangerous goods, the second aspect of this embodiment shows a method for detecting a child approaching a dangerous goods, and as shown in fig. 3, the method for detecting a child approaching a dangerous goods provided by this embodiment of the present application includes the following steps:
step S110: and shooting the RGB image and the depth image corresponding to the RGB image.
The method comprises the steps of acquiring an RGB image and a depth image corresponding to the RGB image in a user family through a camera module, wherein the shooting frame rate can be 30 frames per second, and each frame of RGB image corresponds to one frame of depth image.
Step S120: and detecting whether children and dangerous goods exist in the RGB image.
The RGB images with preset frame number can be used as an image sequence, each frame of RGB image in the image sequence is detected, and whether the frame of image has RGB images simultaneously or not is detected.
For example, the preset number of frames may be selected to be 10 frames. For one frame of RGB image, whether a human body exists in the RGB image is detected based on a human body skeleton key point detection technology, if the human body exists, whether the identified human body is an adult or a child can be judged according to different skeleton size proportions of the adult and the child, if the human body exists, hand information of the child is output according to a depth image corresponding to the RGB image, wherein the hand information comprises the position and the depth value of a hand skeleton key point, the position is called as a first coordinate, and the depth value is called as a first depth value. And detecting whether the dangerous goods exist in the RGB image or not based on the goods detection technology, if so, outputting positions and depth values of four vertexes of the dangerous goods prediction box according to the depth image corresponding to the RGB image, wherein the position of each vertex is commonly called as a second coordinate, and the depth values of the four vertexes are all the depth values of the center of the dangerous goods prediction box and are called as second depth values.
If no children or no dangerous goods exist in the frame of RGB image, or neither children nor dangerous goods exist, the frame of RGB image and the depth image corresponding to the frame of RGB image are not further analyzed, the next frame of RGB image and the depth image corresponding to the frame of RGB image can be obtained, and whether the children and the dangerous goods exist at the same time or not is detected.
Step S130: and if the children and the dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image.
If the child and the dangerous goods exist in one frame of RGB image, for one dangerous goods, calculating distances between the four second coordinates and the first coordinate of the dangerous goods based on the depth image corresponding to the frame of RGB image, wherein the distances can be selected as Euclidean distances, and when the Euclidean distances are calculated, the depth values corresponding to the four second coordinates of the dangerous goods are all the second depth values. And comparing the Euclidean distances between the first coordinate and the four second coordinates respectively, and taking the minimum Euclidean distance as the distance between the hand of the child and the dangerous goods.
And if a plurality of dangerous goods exist in the frame of RGB image, taking the dangerous goods corresponding to the minimum Euclidean distance as the dangerous goods to be detected of the frame of RGB image.
Judging whether the Euclidean distance corresponding to the dangerous goods to be detected is smaller than a first distance or not, and if so, calculating a proximity distance according to the Euclidean distance; if the Euclidean distance is larger than or equal to the first distance, the approach distance is not calculated according to the Euclidean distance, and the Euclidean distance corresponding to the dangerous goods to be detected in the next frame of RGB image can be continuously judged.
For an image sequence, after judging whether dangerous goods used for calculating the approaching distance exist in each frame of image, the category of the dangerous goods used for calculating the approaching distance can be counted, the category of the occurrence times is selected as the dangerous goods corresponding to the image sequence, and the average value of Euclidean distances between the dangerous goods and the key of the hand skeleton of the child is calculated and is used as the approaching distance between the child and the dangerous goods in the image sequence.
Step S140: and judging whether the approaching distance is smaller than the safe distance.
And comparing the approach distance corresponding to the image sequence with the safety distance, and judging whether the approach distance is smaller than the safety distance.
If the approach distance is greater than or equal to the safe distance, continuing to perform the approach distance analysis on the next image sequence.
Step S150: and if the approaching distance is less than the safe distance, sending a control signal for alarming.
And if the approach distance corresponding to the image sequence is less than the safety distance, sending a control signal for alarming, wherein in some embodiments, the control signal can be a signal for controlling an alarm of the alarm, and in other embodiments, the control signal can also be a signal for sending alarm information to the mobile communication terminal to remind a user to check children.
In a third aspect, this embodiment also provides a schematic flow chart of another method for detecting that a child approaches a dangerous good, where the method may be used in a controller of a device for detecting that a child approaches a dangerous good, and may also be used in a control device such as a server with computing data computing capability, as shown in fig. 4, the method for detecting that a child approaches a dangerous good includes the following steps:
step S210: receiving an RGB image and a depth image corresponding to the RGB image.
In some embodiments, the control device may receive an indoor RGB image and a depth image corresponding to the RGB image captured by a camera module of a device for detecting that a child approaches a dangerous good, and in other embodiments, the control device may also receive the indoor RGB image and the depth image corresponding to the RGB image in other manners, for example, receive the indoor RGB image and the depth image corresponding to the RGB image captured by an intelligent communication terminal having a binocular camera module, where the binocular camera module includes a color camera and a depth camera.
Step S220: and detecting whether children and dangerous goods exist in the RGB image.
Step S230: and if the children and the dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image.
Step S240: and judging whether the approaching distance is smaller than the safe distance.
Step S250: and if the approaching distance is less than the safe distance, sending a control signal for alarming.
The steps S120 to S150 can be referred to in sequence for the implementation of the steps S220 to S250, and are not described herein again.
In a fourth aspect, the present embodiment further provides a computer-readable storage medium, on which a computer program is stored, which, when executed, implements the method for detecting the approach of a child to a dangerous good according to the third aspect.
By above-mentioned embodiment, this application embodiment is through the depth map that shoots indoor RGB image and correspond, utilize RGB image to carry out children and detect and hazardous articles detect, when detecting out hazardous articles, judge based on the distance between children and the hazardous articles of depth image pair, report to the police when this distance is less than safe distance, when having solved unmanned nurse children, be difficult to discover that children are close to the problem of hazardous articles, through timely warning, be favorable to ensureing children's safety. Furthermore, the camera module group provided with the color camera and the depth camera is used for shooting the RGB images and the depth images corresponding to the RGB images, the distance between the child and the dangerous goods is calculated by using the depth images corresponding to the RGB images, and calculation errors caused by inconsistent visual angles of the RGB images and the depth images are reduced; due to the fact that the placing angles of the objects are diversified, when the distance between the children and the dangerous goods is calculated, a point with the minimum Euclidean distance from the children is selected from four vertexes of the dangerous goods prediction frame, the distance between the point and the children is calculated, and calculation errors caused by the diversification of the placing angles of the dangerous goods are reduced; the distance between the dangerous goods and the children in the multi-frame images in the image sequence is calculated in a multi-frame fusion mode, and instability of detecting the distance between the children and the dangerous goods by using single-frame images is reduced. In summary, this application embodiment can effectively judge whether have the hazardous articles within children's the safe distance, and judge that the accuracy is high.
Since the above embodiments are all described by referring to and combining with other embodiments, the same portions are provided between different embodiments, and the same and similar portions between the various embodiments in this specification may be referred to each other. And will not be described in detail herein.
It is noted that, in this specification, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a circuit structure, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such circuit structure, article, or apparatus. Without further limitation, the presence of an element identified by the phrase "comprising an … …" does not exclude the presence of other like elements in a circuit structure, article or device comprising the element.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
The above-described embodiments of the present application do not limit the scope of the present application.
Claims (10)
1. A device for detecting the proximity of a child to a hazardous material, comprising: a camera module and a controller, wherein,
the camera module comprises a color camera and a depth camera, and is used for shooting RGB images and depth images corresponding to the RGB images;
the controller is in communicative connection with the camera module, the controller configured to: detecting whether children and dangerous goods exist in the RGB image; if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image; judging whether the approach distance is smaller than a safety distance; and if the approaching distance is less than the safe distance, sending a control signal for alarming.
2. The apparatus of claim 1, wherein the controller is configured to calculate the proximity distance between the child and the hazardous material according to the depth image, comprising:
calculating a first depth value of the hand of the child and a second depth value of the center of the dangerous goods according to the depth image;
calculating the Euclidean distance between a first coordinate of the hand of the child and a second coordinate of the dangerous goods prediction box based on the first depth value and the second depth value, wherein the first coordinate of the hand of the child and the second coordinate of the dangerous goods prediction box are obtained according to the RGB image;
and obtaining the approaching distance according to the Euclidean distance.
3. The apparatus for detecting the approach of a child to a dangerous material according to claim 2, wherein the second coordinate is a coordinate of a vertex of the dangerous material prediction box, and the euclidean distance is a minimum value of distances between the first coordinate and four second coordinates.
4. The apparatus for detecting the proximity of a child to a hazardous material according to claim 2, wherein said controller is configured to derive said proximity distance from said euclidean distance, comprising:
judging whether the Euclidean distance is smaller than a first distance, wherein the first distance is larger than a safety distance;
if the Euclidean distance is smaller than the first distance, calculating the approach distance according to the Euclidean distance;
and if the Euclidean distance is greater than or equal to the first distance, calculating the approach distance according to the next frame of RGB image and the depth image corresponding to the RGB image.
5. The apparatus for detecting the proximity of a child to a hazardous material according to claim 2, wherein said controller is configured to derive said proximity distance from said euclidean distance, comprising:
comparing Euclidean distances corresponding to a plurality of dangerous goods in the depth image, and determining the dangerous goods corresponding to the smallest Euclidean distance as the dangerous goods to be detected of the depth image;
and obtaining the approaching distance according to the Euclidean distance of the dangerous goods to be detected.
6. The apparatus for detecting the approaching of a child to a dangerous material according to claim 5, wherein the controller is configured to obtain the approaching distance according to the Euclidean distance of the dangerous material to be detected, and comprises:
comparing the occurrence times of various dangerous goods to be detected in the depth image with the preset frame number to obtain the dangerous goods to be detected with the maximum occurrence times;
and taking the average value of Euclidean distances corresponding to the dangerous goods to be detected with the largest occurrence frequency as the approach distance.
7. The apparatus for detecting the proximity of a child to a hazardous material according to claim 1, wherein the controller is configured to detect the presence of a child in the RGB image, comprising: and judging whether children exist in the RGB image or not by detecting the key points of the human bones of the RGB image.
8. The apparatus for detecting the proximity of a child to a hazardous material according to claim 1, wherein the controller is configured to detect whether a hazardous material is present in the RGB image, comprising: and judging whether dangerous goods exist in the RGB image or not through a pre-trained dangerous goods detection neural network.
9. A method of detecting the proximity of a child to a hazardous material, comprising:
shooting an RGB image and a depth image corresponding to the RGB image;
detecting whether children and dangerous goods exist in the RGB image;
if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image;
judging whether the approach distance is smaller than a safety distance;
and if the approaching distance is less than the safe distance, sending a control signal for alarming.
10. A method of detecting the proximity of a child to a hazardous material, comprising:
receiving an RGB image and a depth image corresponding to the RGB image;
detecting whether children and dangerous goods exist in the RGB image;
if children and dangerous goods exist in the RGB image, calculating the approaching distance of the children and the dangerous goods according to the depth image;
judging whether the approach distance is smaller than a safety distance;
and if the approaching distance is less than the safe distance, sending a control signal for alarming.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010231862.0A CN113450534A (en) | 2020-03-27 | 2020-03-27 | Device and method for detecting approach of children to dangerous goods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010231862.0A CN113450534A (en) | 2020-03-27 | 2020-03-27 | Device and method for detecting approach of children to dangerous goods |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113450534A true CN113450534A (en) | 2021-09-28 |
Family
ID=77808093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010231862.0A Pending CN113450534A (en) | 2020-03-27 | 2020-03-27 | Device and method for detecting approach of children to dangerous goods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113450534A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113989719A (en) * | 2021-10-30 | 2022-01-28 | 福州大学 | Construction site theft monitoring method and system |
CN114495041A (en) * | 2022-01-27 | 2022-05-13 | 北京合众思壮时空物联科技有限公司 | Method, device, equipment and medium for measuring distance between vehicle and target object |
CN115223089A (en) * | 2022-06-22 | 2022-10-21 | 深圳市儿童医院 | Children dangerous behavior detection method and device, intelligent terminal and storage medium |
CN115578827A (en) * | 2022-12-07 | 2023-01-06 | 杭州宇链科技有限公司 | Method and system for tracking dangerous chemical article receiving container based on AI video |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10124093A1 (en) * | 2001-05-16 | 2002-12-12 | Alexander Plank | Child protection system comprises arrangement of transceivers that can be used to determine if child leaves predefined area and then to trigger alarms, locating signals and sending of warning messages |
CN103368135A (en) * | 2012-03-26 | 2013-10-23 | 鸿富锦精密工业(深圳)有限公司 | Children auxiliary system and method thereof |
CN108229548A (en) * | 2017-12-27 | 2018-06-29 | 华为技术有限公司 | A kind of object detecting method and device |
CN108829233A (en) * | 2018-04-26 | 2018-11-16 | 深圳市深晓科技有限公司 | A kind of exchange method and device |
CN110046560A (en) * | 2019-03-28 | 2019-07-23 | 青岛小鸟看看科技有限公司 | A kind of dangerous driving behavior detection method and camera |
CN110097736A (en) * | 2019-04-23 | 2019-08-06 | 维沃移动通信有限公司 | Alarm method and warning device |
-
2020
- 2020-03-27 CN CN202010231862.0A patent/CN113450534A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10124093A1 (en) * | 2001-05-16 | 2002-12-12 | Alexander Plank | Child protection system comprises arrangement of transceivers that can be used to determine if child leaves predefined area and then to trigger alarms, locating signals and sending of warning messages |
CN103368135A (en) * | 2012-03-26 | 2013-10-23 | 鸿富锦精密工业(深圳)有限公司 | Children auxiliary system and method thereof |
CN108229548A (en) * | 2017-12-27 | 2018-06-29 | 华为技术有限公司 | A kind of object detecting method and device |
CN108829233A (en) * | 2018-04-26 | 2018-11-16 | 深圳市深晓科技有限公司 | A kind of exchange method and device |
CN110046560A (en) * | 2019-03-28 | 2019-07-23 | 青岛小鸟看看科技有限公司 | A kind of dangerous driving behavior detection method and camera |
CN110097736A (en) * | 2019-04-23 | 2019-08-06 | 维沃移动通信有限公司 | Alarm method and warning device |
Non-Patent Citations (1)
Title |
---|
佚名: "以Kinect鉴定用户是否儿童", 《游侠网》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113989719A (en) * | 2021-10-30 | 2022-01-28 | 福州大学 | Construction site theft monitoring method and system |
CN114495041A (en) * | 2022-01-27 | 2022-05-13 | 北京合众思壮时空物联科技有限公司 | Method, device, equipment and medium for measuring distance between vehicle and target object |
CN115223089A (en) * | 2022-06-22 | 2022-10-21 | 深圳市儿童医院 | Children dangerous behavior detection method and device, intelligent terminal and storage medium |
CN115578827A (en) * | 2022-12-07 | 2023-01-06 | 杭州宇链科技有限公司 | Method and system for tracking dangerous chemical article receiving container based on AI video |
CN115578827B (en) * | 2022-12-07 | 2023-03-14 | 杭州宇链科技有限公司 | Method and system for tracking dangerous chemical article receiving container based on AI video |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113450534A (en) | Device and method for detecting approach of children to dangerous goods | |
CN104157107B (en) | A kind of human posture's apparatus for correcting based on Kinect sensor | |
CN108446630B (en) | Intelligent monitoring method for airport runway, application server and computer storage medium | |
US10095930B2 (en) | System and method for home health care monitoring | |
US11298050B2 (en) | Posture estimation device, behavior estimation device, storage medium storing posture estimation program, and posture estimation method | |
CN108876822B (en) | Behavior risk degree evaluation method and home security nursing system | |
CN111353506B (en) | Adaptive line-of-sight estimation method and apparatus | |
CN108662728B (en) | Information processing method, information processing apparatus, and recording medium | |
WO2019064375A1 (en) | Information processing device, control method, and program | |
WO2015133195A1 (en) | Information processing device, information processing method, and program | |
CN110378244B (en) | Abnormal posture detection method and device | |
Li et al. | Collaborative fall detection using smart phone and Kinect | |
JP2017049676A (en) | Posture discrimination device and object detection device | |
US11783636B2 (en) | System and method for detecting abnormal passenger behavior in autonomous vehicles | |
US20230237699A1 (en) | Method and system for itelligently controlling children's usage of screen terminal | |
JP6851221B2 (en) | Image monitoring device | |
JP6773825B2 (en) | Learning device, learning method, learning program, and object recognition device | |
US10878228B2 (en) | Position estimation system | |
CN114022896A (en) | Target detection method and device, electronic equipment and readable storage medium | |
CN113673319A (en) | Abnormal posture detection method, abnormal posture detection device, electronic device and storage medium | |
CN113965733A (en) | Binocular video monitoring method, system, computer equipment and storage medium | |
CN109964248A (en) | Nurse auxiliary system and its control method and program | |
CN106446870B (en) | A kind of human body contour outline feature extracting method and device | |
CN115861905B (en) | Hotel management system based on internet of things | |
JP2023129657A (en) | Information processing apparatus, control method, and program |
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: 20210928 |