How to detect human presence?

Smart house and smart, what would he know what to do. I want to start with a simple function: switching light on a simple algorithm: dark and in a given area is the person. With light seems to be all clear - take the sensor and ready. But with the detection of a person all the more difficult. A popular cheap method to put the PIR detector is not suitable, because the number of false positives is very large: he froze and turned off, can react to Pets. It is also possible to supply the optical system of lasers that will detect entrance and exit from the premises. But there is a problem with false positives: turned back at the sensor level and it will take that entrance done. I think the ideal would be a novel camera-imager, and according to him define the silhouette of a man. But it is firstly very expensive and secondly where can I get a algorithm of recognition? A compromise is to use a normal camera is connected to a RaspberryPi and OpenCV installed. But the examples and information in recognition of people in video is not found. Individuals - full of people - one article on habré, and with a failure result.
Are there any other options to detect a human in the room? Or someone has experience using OpenCV for this purpose?
June 8th 19 at 16:26
3 answers
June 8th 19 at 16:28
The person usually carries around a smartphone. Smartphone clings to wi-fi.
And in multi-room apartment detectit as to which room? - lou commented on June 8th 19 at 16:31
June 8th 19 at 16:30
follow Me, and I will make you fishers of men.
There is a link to the cascade is, and the phrase for Google - People Detection from OpenCV.
But bother so I wouldn't sensor the presence or similar.
June 8th 19 at 16:32
smart house is a system of automation of processes that are related to the life and not very smart primates. the function of light control can be realized only for storage or similar rooms. for the living room - at the moment not solved by adequate methods of any kind.
for starters it is better to make "smart" ventilation of the bathroom and then try to assess what makes it better/easier/safer to "dumb" ventilation timer. then, in the same way to assess the potential implementation schemes in the standard bug-50m without a major overhaul.
Assume that the knowledge of the machine being tied quite a lot of smart things without realizing this basic things, designing smart homes will be reduced to just the ventilation in here bathroom. And it is possible to process commands at least in the context of the room, where the person is. And continue to develop the idea up to the "points of interest" (poi). - lou commented on June 8th 19 at 16:35
, it is necessary to proceed from the tasks and to find a solution for it, but not to sculpt a "solution" of crutches and try to think up what to adjust.
if the management light, it means the script for the evening time. bot with machine vision do not know when I want to watch a movie with/without light. the bot does not determine that I fall asleep and the light is not needed, although it was initially needed. the bot will not determine whether or not to turn on the light if I went the second man. if the bot determines that the light needs something he will take into account that I sleep or no sleep?
if you search well, collect in a heap all found articles on the successful implementation of the "smart home", then honestly discard the game outright and stupid nonsense - absolutely everything will be reduced for installation in the wall Chinese tablet with display of temperature/weather. for everything else, there are hoods with timers, lamps/night lights with remote controls and air conditioning equipment with its sensors.
but in General, good luck in your endeavors. thesis to begin work on "points of interest" radio, it is not applicable to the practice of Masturbation. you can start with plans for the laying of the network to all future nodes. - lou commented on June 8th 19 at 16:38
all right, in current implementations, a single bot just do not know and cannot do. Why not try to make a bot that will predict? This is the whole problem. I'm not too lazy to use the switch, it is interesting to try to implement such a system. Well, to implement all this in an apartment where there is a major overhaul - wiring almost everywhere have already been laid, no radio. RS485 on vitage. The ModBus Protocol is probably more appropriate not to see. - ayden2 commented on June 8th 19 at 16:41
In principle, you don't have to do it immediately absolutely the smart light to the proposed algorithm the author, you can add a button which will "tell" the system that now "light is not needed" and if you left that room, let's say more than five minutes to reset the state of "the light is not needed" and the rest of the algorithm is to keep like was suggested earlier! - lou commented on June 8th 19 at 16:44
, consider the problem in the wider application. Then implementing it, it will be possible to move towards the implementation of such algorithms:
1) the Camera can recognize a person
2) Able to see points of interest (POI)
3) the ability to recognize objects
And you can come up with a use case:
A man walks up to the exit door and is about to leave the apartment. The system, knowing how the above algorithms will be able to tell the man that he did not take an umbrella if you expect rain.
So far I've found this implementation using TensorFlow I will try - spencer.Kassulke commented on June 8th 19 at 16:47
If man went to the door to leave, then maybe this algorithm and would fit - and if someone calls in and you need to open the door? - lou commented on June 8th 19 at 16:50

Find more questions by tags Smart homeRaspberry PiOpenCV