Intelligent closestool
10172503 ยท 2019-01-08
Assignee
Inventors
Cpc classification
A47K13/10
HUMAN NECESSITIES
International classification
A47K13/10
HUMAN NECESSITIES
Abstract
The present disclosure provides an intelligent closestool including a closestool stand, a closestool seat, a closestool lid, a sensor and a controller. The sensor is configured to sense whether there is an object approaching, or moving away from, the closestool stand, and in the case that there is an object approaching the closestool stand, detect a standing direction of the object relative to the closestool stand. The controller is configured to open/close the closestool lid in the case that the sensor has sensed that the object approaches/moves away from the closestool stand; flip the closestool seat up in the case that the sensor has sensed that the object faces the closestool stand, and flip the closestool seat down in the case that the sensor has sensed that the object turns his or her back to the closestool stand.
Claims
1. An intelligent closestool, comprising a closestool stand, a closestool seat and a closestool lid, and further comprising a sensor and a controller; wherein the sensor is configured to sense whether there is an object approaching, or moving away from, the closestool stand, and in the case that there is an object approaching the closestool stand, detect a standing direction of the object relative to the closestool stand; the controller is configured to: open the closestool lid in the case that the sensor has sensed that the object approaches the closestool stand, and close the closestool lid in the case that the sensor has sensed that the object moves away from the closestool stand; flip the closestool seat up in the case that the sensor has sensed that the object faces the closestool stand, and flip the closestool seat down in the case that the sensor has sensed that the object turns his or her back to the closestool stand.
2. The intelligent closestool according to claim 1, wherein the sensor comprises an infrared sensor and a side face detector; wherein the infrared sensor is configured to sense whether there is an object approaching, or moving away from, the closestool stand; and the side face detector is configured to, after the infrared sensor has sensed that there is an object approaching the closestool stand, detect the standing direction of the object relative to the closestool stand.
3. The intelligent closestool according to claim 2, wherein the side face detector is further configured to, after the infrared sensor has sensed that there is an object approaching the closestool stand, detect the standing direction of the object relative to the closestool stand at predetermined intervals.
4. The intelligent closestool according to claim 3, wherein the side face detector comprises an image collector, an image preprocessor and a grayscale detector; the image collector is configured to, after the infrared sensor has sensed that there is an object approaching the closestool stand, collect a side face image of the object at pre-determined intervals; the image preprocessor is configured to denoise the collected side face image; and the grayscale detector is configured to segment the denoised side face image according to grayscales, and determine whether the object faces the closestool stand according to a grayscale variation direction of the segmented pixels.
5. The intelligent closestool according to claim 4, wherein the grayscale detector is further configured to: determine a grayscale segmentation threshold through an iteration method; record pixels having a grayscale value greater than the segmentation threshold in the denoised image as a first kind of pixels, and record pixels having a grayscale value less than or equal to the segmentation threshold in the denoised image as a second kind of pixels; for each of the second kind of pixels, taking the first kind of pixels adjacent to the second kind of pixel as grayscale direction pixels, calculate angles each of which is formed between a first direction and a second direction and obtained by rotating from the first direction to the second direction along a predetermined rotation direction, wherein the first direction is a right-above direction of the side face image and the second direction is a direction of the second kind of pixel pointing to the respective grayscale direction pixels, then calculate a first average of the angles; calculate a second average of the calculated first averages for the respective second kind of pixels, as a judging angle; judge whether the judging angle is greater than or equal to a first pre-determined angle and less than or equal to a second pre-determined angle; in the case that the judgment result is yes, determine that the object faces the closestool stand; and in the case of not, determine the object turns his or her back on the closestool stand.
6. The intelligent closestool according to claim 5, wherein the predetermined rotation direction is clockwise in the case that the closestool is located on a right side of the first direction; and the predetermined rotation direction is counterclockwise in the case that the closestool is located on a left side of the first direction.
7. The intelligent closestool according to claim 6, wherein the first pre-determined angle is 90 degrees, and the second pre-determined angle is 180 degrees.
8. The intelligent closestool according to claim 5, wherein the grayscale detector is further configured to: calculate T(n+1) according to an iterative formula
9. The intelligent closestool according to claim 4, wherein the controller, the image preprocessor and the grayscale detector are all embedded in the closestool stand.
10. The intelligent closestool according to claim 9, further comprising a wireless transmitter, wherein the wireless transmitter is configured to send the side face image collected by the image collector to the image preprocessor.
11. The intelligent closestool according to claim 10, wherein the wireless transmitter is further configured to send information about the object approaching or moving away from the closestool stand sensed by the infrared sensor to the controller.
12. The intelligent closestool according to claim 1, wherein the controller comprise a driving motor, a flipping gear and a transmission shaft.
13. The intelligent closestool according to claim 12, wherein the flipping gear is fixed on a junction of the closestool lid and the closestool seat, and the controller is further configured to receive information about the object from the sensor; and in the case that the controller has received information about the object approaching the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate to open the closestool lid; in the case that the controller has received information about the object facing the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate to flip the closestool seat up; in the case that the controller has received information about the object having his or her back on the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate to flip the closestool seat down; and in the case that the controller has received information about the object moving away from the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate to close the closestool lid.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) In order to make the objects, the technical solutions and the advantages of the present disclosure more apparent, the present disclosure will be described hereinafter in a clear and complete manner in conjunction with the drawings and embodiments. Obviously, the following embodiments are merely a part of, rather than all of, the embodiments of the present disclosure, and based on these embodiments, a person skilled in the art may obtain the other embodiments, which also fall within the scope of the present disclosure.
(7) Shapes and sizes of each component in the drawings do not reflect actual ratios, instead, merely aim to schematically illustrate contents of the present disclosure.
(8) An intelligent closestool provided by the present disclosure in at least one embodiment, as shown in
(9) The above intelligent closestool provided by the present disclosure in at least one embodiment includes a closestool stand, a closestool seat, a closestool lid, a sensor and a controller. The sensor is configured to sense whether there is an object approaching, or moving away from, the closestool stand, and in the case that there is an object approaching the closestool stand, detect a standing direction detection of the object relative to the closestool stand. The controller is configured to open the closestool lid in the case that the sensor has sensed that the object approaches the closestool stand, and close the closestool lid in the case that the sensor has sensed that the object moves away from the closestool stand; flip the closestool stand up in the case that the sensor has sensed that the object faces the closestool stand, and flip the closestool seat down in the case that the sensor has sensed that the object turns his or her back to the closestool stand.
(10) In the embodiments of the present disclosure, the object mainly refers to a person, which shall not be limited herein.
(11) In some embodiments, as shown in
(12) In some embodiments, the side face detector is configured to, after the infrared sensor has sensed that there is an object approaching the closestool stand, detect the standing direction of the object relative to the closestool stand at predetermined intervals. Obviously, the side face detector may also detect the standing direction of the object relative to the closestool stand in real time, but this will result in an increase in quantities and difficulties of data processing, and increasing the costs.
(13) In some embodiments, as shown in
(14) In the above intelligent closestool provided by the present disclosure in at least one embodiment, besides information about the side face, the side face image collected by the image collector further includes other noises, such as backgrounds, therefore the collected side face image needs to be denoised by the image preprocessor so as to remove information in the side face image, such as backgrounds, to improve the image quality.
(15) In a specific implementation, the side face image can be mainly divided into two parts, i.e., a hair region and a skin region. According to experiences, in the case that a person faces the closestool stand, an area of the skin region is far larger than an area of the hair region. Therefore, whether the person faces the closestool stand may be detected according to grayscale variation direction. Moreover, since there exists an obvious grayscale difference between the hair region and the skin region, the two regions may be segmented through a threshold segmentation method.
(16) Therefore, in an embodiment of the present disclosure, as shown in
(17) S401, determine a grayscale segmentation threshold through an iteration method.
(18) S402, record pixels having a grayscale value greater than the segmentation threshold in the denoised image as a first kind of pixels, and recording pixels having a grayscale value less than or equal to the segmentation threshold in the denoised image as a second kind of pixels.
(19) S403, for each of the second kind of pixels, take the first kind of pixels adjacent to the second kind of pixel as grayscale direction pixels, calculate angles each of which is formed between a first direction and a second direction and obtained by rotating from the first direction to the second direction along a predetermined rotation direction, wherein the first direction is a right-above direction of the side face image and the second direction is a direction of the second kind of pixel pointing to the respective grayscale direction pixels, then calculate a first average of the angles. Here, the predetermined rotation direction may be clockwise in the case that the closestool is located on a right side of the first direction; and the predetermined rotation direction may be counterclockwise in the case that the closestool is located on a left side of the first direction.
(20) Taking the second kind of pixel 2 located in a center position in
(21) S404, calculate a second average of the calculated first averages for the respective second kind of pixels, as a judging angle.
(22) S405, judge whether the judging angle is greater than or equal to a first pre-determined angle and less than or equal to a second pre-determined angle; in the case of yes, determine that the object faces the closestool stand; and in the case of not, determine the object turns his or her back to the closestool stand.
(23) In a specific implementation, the first pre-determined angle and the second pre-determined angle may be initialized and set at factory according to experiences. For example, the first pre-determined angle may be 90 degrees, and the second pre-determined angle may be 180 degrees. The first pre-determined angle and the second pre-determined angle may also be set by a user himself or herself. In general, according to experiences, when a man urinates facing the closestool, an angle of raising head is in the range of 0 degree90 degrees, and an angle of lowering head is in the range of 180 degrees-270 degrees. Therefore, for the above intelligent closestool provided by the present disclosure in at least one embodiment, values of the first pre-determined angle may be in the range of 0 degree90 degrees, and values of the second pre-determined angle may be in the range of 180 degrees-270 degrees, which shall not be limited herein.
(24) In a specific implementation, in the intelligent closestool according to at least one embodiment of the present disclosure, the grayscale detector is further configured to calculate T(n+1) according to an iterative formula
(25)
compare T(n+1) with T(n) and continue to perform the iterative calculation until T(n+1)=T(n), and then take the value of T(n+1) acquired in the case that the iterative calculation is stopped as the grayscale segmentation threshold; where n is an integer greater than 0, C[i] is a quantity of pixels having a grayscale value i in the denoised image, i is an integer from 0 to 255, and
(26)
(27) In some embodiments of the present disclosure, the controller, the image preprocessor and the grayscale detector are all embedded in the closestool stand.
(28) Furthermore, the above intelligent closestool provided by the present disclosure in at least one embodiment further includes a wireless transmitter. The wireless transmitter is configured to send the side face image collected by the image collector to the image preprocessor. The wireless transmitter is connected to the image collector, and may be a short-range wireless transmission device in the related art, such as a Bluetooth device, an infrared device or a WiFi communication device.
(29) Furthermore, in some embodiments of the present disclosure, the wireless transmitter is further configured to send information about the object approaching or moving away from the closestool stand sensed by the infrared sensor to the controller. In this case, the wireless transmitter is further connected to the infrared sensor.
(30) Furthermore, the intelligent closestool according to at least one embodiment of the present disclosure further includes a power supply unit for providing power for the sensor and the controller.
(31) In some embodiments of the present disclosure, the infrared sensor is embedded in a wall at a position facing the side of the object such that the infrared sensor determines whether there is an object approaching, or moving away from, the closestool stand by detecting an infrared spectrum variation of the object.
(32) Furthermore, in some embodiments, the image collector is embedded in the wall at a position facing the side of the object, and arranged under the infrared sensor.
(33) Furthermore, in some embodiments, the power supply unit and the wireless transmitter may also all be embedded in the wall, which shall not be limited herein.
(34) In some embodiments of the present disclosure, the controller includes a driving motor, a flipping gear and a transmission shaft.
(35) In some embodiments of the present disclosure, the flipping gear is fixed on a junction of the closestool lid and the closestool seat so as to control both the closestool lid and the closestool seat. In this way, in the case that the controller has received information about a person approaching the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate a certain degree clockwise to open the closestool lid. After that, in the case that the controller has received information about the person facing the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to continue to rotate to flip the closestool seat up. In the case that the controller has received information about the person having his or her back on the closestool stand from the sensor, the driving motor controls the flipping gear by the transmission shaft to rotate counterclockwise to flip the closestool seat down; in the case that the controller has received information about the person moving away from the closestool stand from the sensor, the driving motor controls flipping gear by the transmission shaft to continue to rotate to close the closestool lid.
(36) The above intelligent closestool provided by the present disclosure in at least one embodiment includes a closestool stand, a closestool seat, a closestool lid, a sensor and a controller. The sensor is configured to sense whether there is an object approaching, or moving away from, the closestool stand, and in the case that there is an object approaching the closestool stand, detect a standing direction of the object relative to the closestool stand. The controller is configured to: open the closestool lid in the case that the sensor has sensed that the object approaches the closestool stand, and close the closestool lid in the case that the sensor has sensed that the object moves away from the closestool stand; flip the closestool seat up in the case that the sensor has sensed that the object faces the closestool stand, and flip the closestool seat down in the case that the sensor has sensed that the object turns his or her back to the closestool stand. Thus, it is able to avoid opening the closestool lid and flipping the closestool seat manually.
(37) Obviously, a person skilled in the art may make improvements and modifications without departing from the principle and the scope of the present disclosure, and in the case that these improvements and modifications belong to what the present disclosure claims and an equivalent technical scope thereof, the present disclosure shall also intend to include these improvements and modifications.