Door switch status monitoring method, device, equipment and computer readable storage medium

The camera device is used to monitor the opening and closing status of the smart door, and infrared reflection and pixel analysis are used to determine the closed status of the door. This solves the problem of false cover of the smart door lock and achieves a real-time monitoring and cost-effective solution.

CN112329504BActive Publication Date: 2024-08-23SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010297734.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2024-08-23
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

When existing smart door locks provide convenience, there is a problem that the door may not be closed tightly (falsely closed), and existing solutions cannot monitor the opening and closing status of the door, requiring special door locks and increasing costs.

Method used

The door to be monitored is photographed by a preset camera device, the camera information is obtained, and the camera information is determined to determine whether there is human contact. The door's opening and closing state is determined based on the pictures before and after contact. The infrared reflection penetration operation and pixel ratio value are used to determine the door's closed state. Real-time monitoring.

Benefits of technology

Without increasing costs, it realizes real-time monitoring of door switch status, avoids the need for special door locks, and has a universal solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112329504B
    Figure CN112329504B
Patent Text Reader

Abstract

The present invention discloses a method for monitoring the switch state of a door, the method comprising: photographing a door to be monitored by a preset camera device, obtaining camera information sent by the camera device, and judging whether a person is in contact with the door to be monitored according to the camera information; if a person is in contact with the door to be monitored, obtaining a first picture and a second picture before and after the person is in contact with the door to be detected in the camera information; and determining the switch state of the door to be monitored according to the first picture and the second picture. The present invention also discloses a door switch state monitoring device, equipment and readable storage medium. The present invention realizes real-time monitoring of the switch state of the door to be monitored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things monitoring, and in particular to a door switch state monitoring method, device, equipment and a computer-readable storage medium. Background Art

[0002] As the Internet of Things technology continues to mature, smart homes have developed rapidly. Now more and more families use smart door locks that can be integrated into the Internet of Things network. However, while smart door locks provide convenience (saving the steps of traditional key door opening and closing), there is also the problem that the door may not be closed tightly (i.e., half-open). The existing method to solve the problem of smart door half-opening is to use a smart door lock with a power-assisting mechanism, that is, to provide additional rotational power to the smart door until the door is locked and cannot be rotated. Although this method can close the door, it cannot monitor the door's open and closed state, and requires the use of a special door lock, which is not popular and requires additional rotational power, which also increases the cost. Summary of the invention

[0003] The main purpose of the present invention is to provide a door switch status monitoring method, aiming to solve the technical problems in the prior art that the switch status of the door cannot be monitored, special door locks need to be used, it is not popular, additional rotational power needs to be provided, and the cost is increased.

[0004] In addition, to achieve the above object, the present invention also provides a door switch state monitoring method, the door switch state monitoring method comprising the following steps:

[0005] The door to be monitored is photographed by a preset camera device, the camera information sent by the camera device is obtained, and according to the camera information, it is determined whether a person is in contact with the door to be monitored;

[0006] If a person comes into contact with the door to be monitored, obtaining a first picture and a second picture before and after the person comes into contact with the door to be detected in the camera information;

[0007] The switch state of the door to be monitored is determined according to the first picture and the second picture.

[0008] Optionally, the step of determining the switch state of the door to be monitored according to the first picture and the second picture includes:

[0009] According to the first picture and the second picture, an infrared reflection penetration operation is performed to obtain a first infrared reflection value and a second infrared reflection value respectively;

[0010] Calculating a reflection ratio value of the second infrared reflection value to the first infrared reflection value;

[0011] If the reflection ratio value is greater than or equal to a first preset threshold, it is determined that the door to be monitored is in a closed state.

[0012] Optionally, after the step of calculating the reflection ratio of the second infrared reflection value to the first infrared reflection value, the following steps are included:

[0013] If the reflection ratio value is less than a first preset threshold, calculating a first average pixel value of all areas in the first image, and calculating a second average pixel value of non-reflection areas in the second image;

[0014] Calculating a pixel ratio value of the first average pixel value to the second average pixel value;

[0015] If the pixel ratio value is greater than or equal to a second preset threshold, it is determined that the door to be monitored is in a closed state;

[0016] If the pixel ratio value is less than the second preset threshold, it is determined that the door to be monitored is in a half-closed state.

[0017] Optionally, the process of determining the non-reflective area includes:

[0018] According to the second image, an infrared reflection penetration operation is performed to determine the target infrared emission line corresponding to the unreflected infrared line;

[0019] Target pixel points corresponding to the target infrared emission line are extracted, and the area where the target pixel points are gathered is used as a non-reflection area.

[0020] Optionally, the step of judging whether a person has come into contact with the door to be monitored according to the camera information includes:

[0021] Extracting a video picture from the camera information, comparing each video frame of the video picture, and determining whether there is a moving subject in the video picture;

[0022] If the moving subject exists in the video picture, determining whether the body contour of the moving subject matches a preset human body contour;

[0023] If the body contour matches the preset human body contour, it is determined that a person is in contact with the door to be monitored.

[0024] Optionally, the door switch state monitoring method is applied to a door switch state monitoring device, and the door switch state monitoring device can be connected to a plurality of camera devices for communication. Before the step of acquiring the camera information sent by the camera device and judging whether a person has contacted the door to be monitored according to the camera information, the method includes:

[0025] Acquire the picture information sent by the target camera device, extract the main body color information in the picture information, and determine whether the target camera device can capture the door to be monitored based on the main body color information;

[0026] If the target camera device can capture the door to be monitored, a communication connection between the target camera device and the door switch status monitoring device is established.

[0027] Optionally, after the step of determining the switch state of the door to be monitored according to the first picture and the second picture, the following steps are included:

[0028] If the door to be monitored is in a half-closed state, a switch abnormality prompt message is sent through the terminal corresponding to the camera device; or,

[0029] A mobile terminal bound to the door to be monitored is obtained, and the switch abnormality prompt information is sent through the mobile terminal.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a door switch state monitoring device, the door switch state monitoring device comprising:

[0031] A judgment module, used to shoot the door to be monitored by a preset camera device, obtain the camera information sent by the camera device, and judge whether there is a person in contact with the door to be monitored according to the camera information;

[0032] An acquisition module, for acquiring, if a person comes into contact with the door to be monitored, a first picture and a second picture before and after the person comes into contact with the door to be monitored in the camera information;

[0033] A determination module is used to determine the switch state of the door to be monitored according to the first picture and the second picture.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a door switch status monitoring device, which includes: a memory, a processor, and a door switch status monitoring program stored in the memory and executable on the processor, and when the door switch status monitoring program is executed by the processor, the steps of the door switch status monitoring method as described above are implemented.

[0035] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a door switch status monitoring program is stored, and when the door switch status monitoring program is executed by a processor, the steps of the door switch status monitoring method as described above are implemented.

[0036] The embodiments of the present invention propose a method, device, equipment and readable storage medium for monitoring the switch status of a door. In the embodiments of the present invention, a preset camera device is used to shoot the door to be monitored, thereby obtaining camera information including video images, and further by analyzing the video frames of the video images, it is determined whether a person has come into contact with the door to be monitored, thereby providing an application scenario in which a person walks out of the door to be monitored. When the switch status monitoring program determines that a person has come into contact with the door to be monitored, two pictures before and after the person has come into contact with the door to be monitored are further captured, which are the first picture and the second picture, respectively. Finally, the switch status of the door to be monitored is determined through the first picture and the second picture. This embodiment realizes real-time monitoring of the switch status of the door to be monitored without increasing costs (without using special door locks). BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of the hardware structure of an implementation of a door switch status monitoring device provided by an embodiment of the present invention;

[0038] Figure 2 It is a schematic flow chart of a first embodiment of a method for monitoring a door switch state according to the present invention;

[0039] Figure 3 It is a schematic diagram of judging the contact between a person and a door to be monitored in the first embodiment of the door switch state monitoring method of the present invention;

[0040] Figure 4 It is a flow chart of the second embodiment of the door switch state monitoring method of the present invention;

[0041] Figure 5 It is a schematic flow chart of a third embodiment of a method for monitoring a door switch state according to the present invention;

[0042] Figure 6 Schematic diagram of the flow chart of the fourth embodiment of the door switch status monitoring method of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0046] The door switch status monitoring terminal (also called terminal, device or terminal device) in the embodiment of the present invention can be an information processing device such as a personal computer and a smart phone, and also includes information acquisition devices such as a camera, and also includes information storage devices such as a memory and a server.

[0047] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0049] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a door switch status monitoring program.

[0051] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the door switch status monitoring program stored in the memory 1005. When the door switch status monitoring program is executed by the processor, the operations in the door switch status monitoring method provided in the following embodiment are implemented.

[0052] Based on the hardware structure of the switch status monitoring device described above, an embodiment of the door switch status monitoring method of the present invention is proposed.

[0053] Reference Figure 2 In a first embodiment of the door switch state monitoring method of the present invention, the door switch state monitoring method comprises:

[0054] Step S10, photographing the door to be monitored by a preset camera device, acquiring camera information sent by the camera device, and judging whether a person is in contact with the door to be monitored according to the camera information.

[0055] In this embodiment, the door switch state monitoring method is applied to the door switch state monitoring device, wherein the door switch state monitoring device includes information processing devices such as personal computers and smart phones (hereinafter referred to as smart phones), and also includes information acquisition devices such as cameras (hereinafter referred to as cameras), and also includes information storage devices such as memory and servers (hereinafter referred to as memory). The preset camera device in this embodiment means that in an IoT home environment, many devices are interconnected through a public wireless network, and the camera device is part of these devices. The camera device may not be a separate individual, it can also be a camera installed on a TV, a mobile phone, and a remote control drone. The door to be monitored refers to a door in a home environment, that is, the entrance and exit of this home environment. The switch state of the door to be monitored directly affects the safety of the home environment. The camera device in this embodiment can shoot the door to be monitored from multiple angles and obtain the camera information, which includes video images, sounds, and camera time information. It can be known that through the video images or sounds in the camera information, it can be judged whether there is a person in the video image containing the door to be monitored, and if there is a person, it is further judged whether there is contact between the person and the door to be monitored.

[0056] Step S20: If a person comes into contact with the door to be monitored, a first picture and a second picture before and after the person comes into contact with the door to be detected in the camera information are obtained.

[0057] It can be known that the method for judging whether there is contact between a person and the door to be monitored can be to capture the movement trajectory of the person through a camera. If a person is captured entering the video screen from the outside and disappearing in the video screen (not walking out of the video screen), it is determined that there is contact between the person and the door to be monitored, that is, the person walks out of the door to be monitored in the video screen. The specific judgment method is not described in this embodiment. When a person contacts the door to be monitored, the door switch state monitoring program will obtain the system time when the person contacts the door to be monitored, and capture a clear picture in the video screen before and after this system time, and the picture captured before this system time is the first picture, which is used to show the switch state of the door to be monitored before the person contacts the door to be monitored. It is generally believed that when the person does not walk out of the door to be monitored, the door to be monitored is in a closed state. The picture captured after this system time is the second picture, which is used to show the switch state of the door to be monitored after the person contacts the door to be monitored, that is, the switch state that needs to be judged in this embodiment.

[0058] Step S30: determining the switch state of the door to be monitored according to the first picture and the second picture.

[0059] By analyzing the first picture and the second picture, the switch state of the door to be monitored can be determined, wherein the switch state of the door to be monitored includes a closed state and a half-open state (i.e., an unclosed state). Specifically, how to determine the switch state of the door to be monitored by analyzing the first picture and the second picture will not be described in detail in this embodiment.

[0060] Specifically, the detailed steps of step S10 include:

[0061] Step a1, extracting the video picture in the camera information, comparing each video frame of the video picture, and judging whether there is a moving subject in the video picture.

[0062] Step a2: if the moving subject exists in the video image, determine whether the body contour of the moving subject matches a preset human body contour.

[0063] Step a3: If the body outline matches the preset body outline, it is determined that a person is in contact with the door to be monitored.

[0064] The video images in this embodiment belong to the camera information. It is known that the video is composed of frames of images. The video frame in this embodiment refers to each frame of the video. It is known that by comparing each frame of the video, if there are continuous differences in the content of the images, it can be determined that there is a moving subject in the video image, which is similar to the process of animation production. When it is determined that there is a moving subject in the video image, the door switch state monitoring program will further obtain the outer edge contour of the moving subject, that is, the subject contour in this embodiment. The purpose of obtaining the contour of the moving subject is to further determine that the moving subject is a person, such as Figure 3 As shown, Figure 3 In the case where there are moving people and other moving objects in the video (the mobile remote control car in the picture can also be a pet cat or a pet dog), Figure 3 There are moving people on the left side and other moving objects on the right side. By obtaining the subject contour and further matching the subject contour with the preset human body contour, wherein the preset human body contour is the pre-stored human body contour in various normal walking postures, by matching the subject contour with the preset human body contour, it is determined whether there is a person in contact with the door to be monitored. If the match is successful, it is determined that there is a person in contact with the door to be monitored. It can be seen that in order to exclude the situation where a person just walks through the video screen, when comparing each video frame of the video screen, the situation where the moving subject walks through the video screen is excluded, and only the moving subject that enters the video screen and disappears from the door to be monitored in the video screen is matched with the contour. It can be seen that the moving subject that enters the video screen and disappears from the door to be monitored in the video screen can be determined to have walked out of the door to be monitored, and it can also be further determined that the moving subject is a person.

[0065] In this embodiment, the door to be monitored is photographed by a preset camera device, thereby obtaining camera information including video images, and further analyzing the video frames of the video images to determine whether a person has come into contact with the door to be monitored, thereby providing an application scenario in which a person walks out of the door to be monitored. When the switch status monitoring program determines that a person has come into contact with the door to be monitored, it further captures two pictures before and after the person has come into contact with the door to be monitored, which are the first picture and the second picture, respectively. Finally, the switch status of the door to be monitored is determined by the first picture and the second picture. This embodiment realizes real-time monitoring of the switch status of the door to be monitored without increasing costs (without using special door locks).

[0066] Further, refer to Figure 4 Based on the above-mentioned embodiments of the present invention, a second embodiment of the door switch state monitoring method of the present invention is proposed.

[0067] This embodiment is a refinement of step S30 in the first embodiment. The difference between this embodiment and the above-mentioned embodiment of the present invention is that:

[0068] Step S31: performing an infrared reflection penetration operation according to the first picture and the second picture to obtain a first infrared reflection value and a second infrared reflection value respectively.

[0069] Step S32, calculating a reflection ratio of the second infrared reflection value to the first infrared reflection value.

[0070] Step S33: If the reflection ratio value is greater than or equal to a first preset threshold, it is determined that the door to be monitored is in a closed state.

[0071] In this embodiment, the infrared reflection penetration operation refers to emitting infrared rays to an object. If the object has a gap or a transparent part, the infrared rays irradiated at these positions will not be reflected. Using this principle, the door switch state monitoring method in this embodiment can realize the monitoring of the door gap. First, by obtaining the position of the door to be monitored in the first picture and the second picture, the infrared reflection penetration module is started to perform an infrared 360-degree scan on the door to be monitored, and the reflected infrared rays are received. It can be seen that when the infrared reflection penetration module is started to perform an infrared scan on the door to be monitored in the first picture, the reflected infrared rays correspond to the first infrared reflection value (for example, 100×100), and when the door to be monitored in the second picture is infrared scanned, the reflected infrared rays correspond to the second infrared reflection value (for example, 90×100). Because the door to be monitored in the first picture is in a closed state, the first infrared reflection value is greater than or equal to the second infrared reflection value. The reflection ratio value in this embodiment is the ratio of the second infrared reflection value to the first infrared reflection value. For example, if the first infrared reflection value is 100×100 and the second infrared reflection value is 90×100, the reflection ratio value is 0.9. It can be seen that if the reflection ratio value is larger, it means that when the infrared scan is performed on the door to be monitored in the second picture, more infrared rays are reflected, and the door gap of the door to be monitored in the second picture is smaller. The first preset threshold value in this embodiment is obtained based on the experience of multiple experiments, is a preset value, and is adjustable. For example, the first preset threshold value is 0.95. If the reflection ratio value is 0.96, it means that when the infrared scan is performed on the door to be monitored in the second picture, the reflected infrared rays account for 0.96 of the reflected infrared rays when the infrared scan is performed on the door to be monitored in the first picture. That is, the more infrared rays are reflected, in this case, the door switch state monitoring program determines that the door to be monitored is in a closed state.

[0072] Specifically, the steps after step S32 include:

[0073] Step b1, if the reflection ratio value is less than a first preset threshold, then calculating a first average pixel value of all areas in the first image, and calculating a second average pixel value of non-reflection areas in the second image.

[0074] Step b2, calculating the pixel ratio of the first average pixel value to the second average pixel value.

[0075] Step b3: If the pixel ratio value is greater than or equal to a second preset threshold, it is determined that the door to be monitored is in a closed state.

[0076] Step b4: If the pixel ratio value is less than the second preset threshold, it is determined that the door to be monitored is in a half-closed state.

[0077] It is known that when the reflection ratio value is less than the first preset threshold value, the door switch state monitoring program will also obtain the pixel values ​​of all pixels in the first image and calculate the average pixel value (i.e., the first average pixel value in this embodiment). The non-reflected area in this embodiment refers to the area where the infrared rays are not reflected when the infrared scanning is performed on the door to be monitored in the second image. This area corresponds to the door gap of the door to be monitored. It is known that the color of the door gap is obviously different from the color of the door to be monitored in the image, because it is bright due to light transmission. The pixel value in this embodiment is represented by RGB (a color standard). It is known that the RGB value of bright colors is higher than that of ordinary colors. Therefore, the second average pixel value in this embodiment is greater than the first average pixel value. Similarly, the pixel ratio value in this embodiment is the ratio of the first average pixel value to the second average pixel value. For example, if the first infrared reflection value is 220×200×189 and the second infrared reflection value is 234×230×240, the reflection ratio value is about 0.64. It can be seen that if the pixel ratio value is smaller, the non-reflected area showing bright light is larger, that is, the door gap of the door to be monitored in the second picture is larger. In this embodiment, the second preset threshold is also obtained based on the experience of multiple experiments and is an adjustable preset value. For example, the second preset threshold is 0.6. If the pixel ratio value is 0.7, in this case, the door switch state monitoring program will determine that the door to be monitored is in a closed state. If the reflection ratio value is less than the second preset threshold, the door switch state monitoring program will determine that the door to be monitored is in a half-open state.

[0078] Specifically, the step of determining the non-reflective area in step b1 includes:

[0079] Step c1, performing an infrared reflection penetration operation according to the second image, and determining the target infrared emission line corresponding to the unreflected infrared line.

[0080] Step c2, extracting target pixel points corresponding to the target infrared emission line, and taking the area where the target pixel points are gathered as the non-reflection area.

[0081] In this embodiment, the target infrared emission line refers to the infrared rays emitted to the object when passing through a part without gaps or an opaque part, the infrared rays will be reflected, and when the infrared rays emitted to the object pass through a gap or a transparent part, the infrared rays will not be reflected, and the part of the infrared rays that are not reflected is the target infrared emission line. It can be known that the infrared rays emitted to the object have a corresponding relationship with the pixels in the picture. Specifically, the corresponding relationship between the infrared rays and the pixels depends on the emission density of the infrared rays. Generally, the infrared rays and the pixels have a one-to-one or many-to-one relationship. Through this corresponding relationship, the target pixel points corresponding to the target infrared emission line can be determined, and then the area where the target pixel points are gathered is used as the non-reflected area, which can be used to indicate the position of the door gap.

[0082] In this embodiment, the reflection ratio value and the pixel ratio value are obtained by infrared reflection penetration operation and calculation of the average pixel value, and the size of the reflection ratio value and the pixel ratio value are further judged to provide a specific method for determining the door switch state, thereby realizing real-time monitoring of the door switch state to be monitored.

[0083] Further, refer to Figure 5 Based on the above embodiments of the present invention, a third embodiment of the door switch state monitoring method of the present invention is proposed.

[0084] This embodiment is the step before step S10 in the first embodiment. The difference between this embodiment and the above-mentioned embodiment of the present invention is that:

[0085] Step S40, acquiring the picture information sent by the target camera device, extracting the main body color information in the picture information, and judging whether the target camera device can capture the door to be monitored according to the main body color information.

[0086] Step S50: If the target camera device can capture the door to be monitored, a communication connection is established between the target camera device and the door switch status monitoring device.

[0087] In this embodiment, the target camera device refers to all devices with camera functions in a smart home environment, which may include surveillance cameras, smart phones, smart TVs, and remote-controlled drones. By acquiring the image information captured and sent by the target camera device, the color information of the subject in the captured photo is acquired, and the subject color information is analyzed and judged to determine whether the target camera device can capture the door to be monitored. Specifically, the subject of the captured photo is first acquired. The subject located at the center of the photo can be determined by the existing image recognition technology, and the edge of the subject is acquired. By judging the edge of the subject, it can be determined whether the subject is a door, and then the color information of the subject is further acquired. It can be seen that most doors have a fixed color, such as red. By pre-acquiring the color information of the door to be monitored, the acquired subject color is further compared with the color of the door to be monitored. If the two are similar, it can be determined that the subject is the door to be monitored, and it is determined that the target camera device can capture the door to be monitored. Finally, the target camera device that can capture the door to be monitored establishes a communication connection with the door switch status monitoring device.

[0088] In this embodiment, by screening all target camera devices, a communication connection is established between the target camera device that can capture the door to be monitored and the door switch state monitoring device, laying a foundation for subsequent judgment of the door switch state to be monitored.

[0089] Further, refer to Figure 6 Based on the above embodiments of the present invention, a third embodiment of the door switch state monitoring method of the present invention is proposed.

[0090] This embodiment is the step after step S30 in the first embodiment. The difference between this embodiment and the above-mentioned embodiment of the present invention is that:

[0091] Step S60: If the door to be monitored is in a half-open state, a switch abnormality prompt message is sent through the terminal corresponding to the camera device.

[0092] Step S70, obtaining a mobile terminal bound to the door to be monitored, and sending the switch abnormality prompt information through the mobile terminal.

[0093] The switch abnormality prompt information in this embodiment refers to, when the door switch status monitoring program determines that the switch status of the door to be monitored is in a half-closed state, the prompt information is output to remind the user that the door to be monitored is not closed. The switch abnormality prompt information may include voice, text, sound and other forms, and can also be output on the terminal corresponding to the camera device. For example, when the switch status of the door to be monitored is in a half-closed state, the prompt information is output on the interface on the smart TV, and the switch abnormality prompt information can also be sent through a mobile terminal bound to the door to be monitored (such as a smart phone carried by the user).

[0094] In this embodiment, when the door switch status monitoring program determines that the switch status of the door to be monitored is a half-closed state, a switch abnormality prompt message is sent through the terminal corresponding to the camera device or the mobile terminal bound to the door to be monitored, which serves as a reminder to the user.

[0095] In addition, an embodiment of the present invention further provides a door switch state monitoring device, the door switch state monitoring device comprising:

[0096] A judgment module, used to shoot the door to be monitored by a preset camera device, obtain the camera information sent by the camera device, and judge whether there is a person in contact with the door to be monitored according to the camera information;

[0097] An acquisition module, for acquiring, if a person comes into contact with the door to be monitored, a first picture and a second picture before and after the person comes into contact with the door to be monitored in the camera information;

[0098] A determination module is used to determine the switch state of the door to be monitored according to the first picture and the second picture.

[0099] Optionally, the determining module includes:

[0100] a penetration unit, configured to perform an infrared reflection penetration operation according to the first picture and the second picture, and obtain a first infrared reflection value and a second infrared reflection value respectively;

[0101] A first calculation unit, used for calculating a reflection ratio value of the second infrared reflection value to the first infrared reflection value;

[0102] The first determination unit is used to determine that the door to be monitored is in a closed state if the reflection ratio value is greater than or equal to a first preset threshold value.

[0103] Optionally, the door switch state monitoring device further includes:

[0104] a second calculation unit, configured to calculate a first average pixel value of all areas in the first image and a second average pixel value of a non-reflective area in the second image if the reflection ratio value is less than a first preset threshold;

[0105] A third calculation unit, used for calculating a pixel ratio value between the first average pixel value and the second average pixel value;

[0106] A second determination unit, configured to determine that the door to be monitored is in a closed state if the pixel ratio value is greater than or equal to a second preset threshold;

[0107] The third determination unit is configured to determine that the door to be monitored is in a half-closed state if the pixel ratio value is less than the second preset threshold value.

[0108] Optionally, the third computing unit includes:

[0109] A reflection unit, used to perform an infrared reflection penetration operation according to the second image, and determine a target infrared emission line corresponding to the unreflected infrared line;

[0110] The extraction unit is used to extract the target pixel points corresponding to the target infrared emission line, and take the area where the target pixel points are gathered as the non-reflection area.

[0111] Optionally, the judging module includes:

[0112] A comparison unit, used for extracting a video picture from the camera information, comparing each video frame of the video picture, and determining whether there is a moving subject in the video picture;

[0113] A judging unit, configured to judge whether a body contour of the moving subject matches a preset human body contour if the moving subject exists in the video picture;

[0114] The fourth determination unit is configured to determine that a person is in contact with the door to be monitored if the body contour matches the preset body contour.

[0115] Optionally, the door switch state monitoring device further includes:

[0116] An acquisition unit, used to acquire the picture information sent by the target camera device, extract the main body color information in the picture information, and determine whether the target camera device can capture the door to be monitored according to the main body color information;

[0117] An establishing unit is used to establish a communication connection between the target camera device and the door switch status monitoring device if the target camera device can capture the door to be monitored.

[0118] Optionally, the door switch state monitoring device further includes:

[0119] The first sending unit is used to send switch abnormality prompt information through the terminal corresponding to the camera device if the door to be monitored is in a half-closed state; or

[0120] The second sending unit is used to obtain the mobile terminal bound to the door to be monitored, and send the switch abnormality prompt information through the mobile terminal.

[0121] The methods executed by the above-mentioned program modules can refer to the various embodiments of the method of the present invention, and will not be described in detail here.

[0122] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a tablet computer, etc.) to execute the methods described in each embodiment of the present invention.

[0125] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A door switch status monitoring method, It is characterized in that The door switch state monitoring method comprises the following steps: The door to be monitored is photographed by a preset camera device, the camera information sent by the camera device is obtained, and according to the camera information, it is determined whether a person is in contact with the door to be monitored; If a person comes into contact with the door to be monitored, obtaining a first picture and a second picture before and after the person comes into contact with the door to be monitored in the camera information; Determining the switch state of the door to be monitored according to the first picture and the second picture; Wherein, the step of determining the switch state of the door to be monitored according to the first picture and the second picture includes: according to the first picture and the second picture, starting the infrared reflection penetration module to perform an infrared 360-degree scan on the door to be monitored, and receiving the reflected infrared rays, obtaining a first infrared reflection value 100×100 corresponding to the door to be monitored in the first picture and a second infrared reflection value 90×100 corresponding to the door to be monitored in the second picture; calculating a reflection ratio value of the second infrared reflection value to the first infrared reflection value; if the reflection ratio value is less than a first preset threshold, calculating a first average pixel value of all areas in the first picture, and calculating a second average pixel value of a non-reflected area in the second picture; calculating a pixel ratio value of the first average pixel value to the second average pixel value; if the pixel ratio value is greater than or equal to a second preset threshold, determining that the door to be monitored is in a closed state; if the pixel ratio value is less than the second preset threshold, determining that the door to be monitored is in a half-closed state; if the reflection ratio value is greater than or equal to the first preset threshold, determining that the door to be monitored is in a closed state; Among them, the process of determining the non-reflected area includes: performing an infrared reflection penetration operation according to the second picture to determine the target infrared emission line corresponding to the non-reflected infrared light; extracting the target pixel points corresponding to the target infrared emission line based on the correspondence between infrared light and pixel points, and taking the area where the target pixel points are gathered as the non-reflected area, and the correspondence between the infrared light and the pixel points depends on the emission density of the infrared light.

2. The door switch status monitoring method according to claim 1, It is characterized in that The step of judging whether a person has come into contact with the door to be monitored according to the camera information comprises: Extracting a video picture from the camera information, comparing each video frame of the video picture, and determining whether there is a moving subject in the video picture; If the moving subject exists in the video picture, determining whether the body contour of the moving subject matches a preset human body contour; If the body contour matches the preset human body contour, it is determined that a person is in contact with the door to be monitored.

3. The door switch status monitoring method according to claim 1, It is characterized in that The door switch state monitoring method is applied to a door switch state monitoring device, and the door switch state monitoring device can be connected to a plurality of camera devices for communication. Before the step of acquiring the camera information sent by the camera device and judging whether a person has contacted the door to be monitored according to the camera information, the method includes: Acquire the picture information sent by the target camera device, extract the main body color information in the picture information, and determine whether the target camera device can capture the door to be monitored based on the main body color information; If the target camera device can capture the door to be monitored, a communication connection between the target camera device and the door switch status monitoring device is established.

4. The door switch status monitoring method according to claim 1, It is characterized in that After the step of determining the switch state of the door to be monitored according to the first picture and the second picture, the method further comprises: If the door to be monitored is in a half-closed state, a switch abnormality prompt message is sent through the terminal corresponding to the camera device; or, A mobile terminal bound to the door to be monitored is obtained, and the switch abnormality prompt information is sent through the mobile terminal.

5. A door switch status monitoring device, It is characterized in that The door switch state monitoring device comprises: A judgment module, used to shoot the door to be monitored by a preset camera device, obtain the camera information sent by the camera device, and judge whether there is a person in contact with the door to be monitored according to the camera information; an acquisition module, for acquiring, if a person comes into contact with the door to be monitored, a first picture and a second picture before and after the person comes into contact with the door to be monitored in the camera information; A determination module, configured to determine the switch state of the door to be monitored according to the first picture and the second picture; The determination module includes: a penetration unit, which is used to start the infrared reflection penetration module to perform an infrared 360-degree scan on the door to be monitored according to the first picture and the second picture, and receive the reflected infrared light to obtain a first infrared reflection value 100×100 corresponding to the door to be monitored in the first picture and a second infrared reflection value 90×100 corresponding to the door to be monitored in the second picture; A first calculation unit, used for calculating a reflection ratio value of the second infrared reflection value to the first infrared reflection value; a second calculation unit, for calculating the first average pixel value of all areas in the first picture and the second average pixel value of the non-reflection area in the second picture if the reflection ratio value is less than a first preset threshold value; a third calculation unit, for calculating the pixel ratio value of the first average pixel value and the second average pixel value; a second determination unit, for determining that the door to be monitored is in a closed state if the pixel ratio value is greater than or equal to a second preset threshold value; a third determination unit, for determining that the door to be monitored is in a half-closed state if the pixel ratio value is less than the second preset threshold value; a first determination unit, for determining that the door to be monitored is in a closed state if the reflection ratio value is greater than or equal to the first preset threshold value; Among them, the third calculation unit includes: a reflection unit, which is used to perform an infrared reflection penetration operation according to the second picture to determine the target infrared emission line corresponding to the unreflected infrared light; an extraction unit, which is used to extract the target pixel points corresponding to the target infrared emission line based on the correspondence between infrared rays and pixel points, and take the area where the target pixel points are gathered as the unreflected area, and the correspondence between the infrared rays and the pixel points depends on the emission density of the infrared rays.

6. A door switch status monitoring device, It is characterized in that The door switch state monitoring device includes: a memory, a processor, and a door switch state monitoring program stored in the memory and executable on the processor. When the door switch state monitoring program is executed by the processor, the steps of the door switch state monitoring method as described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a door switch state monitoring program, and when the door switch state monitoring program is executed by the processor, the steps of the door switch state monitoring method according to any one of claims 1 to 4 are implemented.