SteveMann
Posts: 79
Joined: Sat Dec 08, 2012 10:39 pm

People detection

Fri Jul 14, 2017 3:12 am

I am working on a project for Halloween that has many parts. One of my gags is a skull or a whole skeleton with an 8x8 bi-color led matrix for each eye. I spent a few days working on face detection and the eyes "follow" the person as long as the camera inside the skull can see the face. It's slow, but pretty realistic. (It freaked my wife out- and she knows what I am working on). In the future I plan to turn the head with a stepper motor if the face goes to the edge of the image.

But my wife noticed something basically wrong with my face detection. The guests will likely be wearing a mask.

(darn).

So, can anyone think of another way to detect where a person is located. It doesn't have to be precise. I was thinking of using a pair of microphones into an A to D and move the eyes toward the louder of the two. I though of using a couple of PIR sensors and turn toward the first that sees movement. Maybe an x-y matrix on the floor to detect where someone is standing?

Any ideas would be appreciated.
SteveMann
Still a Novice after four years...

sparkyhall
Posts: 168
Joined: Mon Aug 27, 2012 9:14 am

Re: People detection

Fri Jul 14, 2017 7:33 am

You may be able to use the Pi camera motions vectors like PiKrellCam does to detect motion:

http://billw2.github.io/pikrellcam/pikrellcam.html

daveyman123
Posts: 119
Joined: Fri Dec 12, 2014 2:21 am

Re: People detection

Sat Jul 15, 2017 1:25 am

https://www.youtube.com/watch?v=oJAl9Yd3kNo
this guy manages to follow people with a laser

TBH it looks like youre in for a lot more tinkering with opencv as opencv seems to be the best.. although it may also be dark on halloween. so idk

sentdex has some tutorials on opencv tracking.

SteveMann
Posts: 79
Joined: Sat Dec 08, 2012 10:39 pm

Re: People detection

Mon Jul 17, 2017 3:15 pm

sparkyhall wrote:You may be able to use the Pi camera motions vectors like PiKrellCam does to detect motion:

http://billw2.github.io/pikrellcam/pikrellcam.html
Thanks for the tip. I don't really need to detect a face, just where people may be. The goal is to have the eyes "follow" people on the porch.
SteveMann
Still a Novice after four years...

Return to “General discussion”