Page 1 of 1
Camera + facial Recognition
Posted: Wed May 17, 2006 6:08 am
by aususer
I've just installed ZoneMinder on my BT-878 card DVB-T card using composite0 (also running MythTV too! way too good!). I'll be installing a 4port FusionBT878A card tonight..
I digress..
My idea is to put a camera at the front door, one out the back door.
What I would *like* to do is have a level of facial recognition that would poll a .jpg (?) file against a known photo list - if there is a match - open the door.
I've been looking at Intel's recogintion opensource code that looks like a winner so far (I'm not a programmer - but will "suck-and-see" how far I can go)
http://www.intel.com/technology/computi ... /index.htm
I have only just installed ZoneMinder with my first camera today... so still learning - but is there somewhere .jpg files are stored? Is there ONE file that I could look at that would be regularly updated? I noticed that there is an image on the website... is that one file that is modified constantly?
Once I have it all configured correctly, I will have more understanding - but am I breaking new ground - or has this been done before?
I can look after the triggering of devices - but I will first need to get Zoneminder comparing files to a list through some sort of recognition...
Any input to extend zoneminder can only be good...
Posted: Wed May 17, 2006 8:25 am
by jameswilson
its a good idea but i thnk a behemoth of a project! You cal pull an jpeg from zms at any interval you like. If you get code that can recognise from 1 image to another i will add the get image from zm and the cycle through the known images. Butr to be fair there the easy bits!! lol. Also facial recognition for access control is fraught with problems, ie sunlight or lack off, facial hair (yours or the wifes) glasses/shades, hats, tans etc etc. But id love to hear how you get on
Posted: Wed May 17, 2006 12:48 pm
by aususer
Bugger Me if that ain't a challenge.
The way I see it - we will need to sample a file every few seconds...
I'm still looking at code - but what I see is there are two steps:
firstly, obtain an image that has a face in it - they correct for colour/tint/features/hair/hat etc... at this point
2. run an algorithm over it to process the face - and see if it is one that we know of.
I recon that we need to obtain an image, process it to see if it contains a face - if not - reprocess - but if so - process it. I'm hoping(?) that one second would be enough to capture that information and process it for if its a face - the processing for recognition will take much longer - but once we have it... who cares?!
Anyway - is there anywhere I can get a jpg file that would contain the snapshot now? I'll start testing code and see what I can find that might do the job.
There are plenty of commercial products up there... but where it will be wonderful with ZM is, we can trigger a motion event of someone comming up to the door - and if the person coming up to the door is someone we trust.... well I'll stop dreaming now!
Posted: Wed May 17, 2006 5:15 pm
by jameswilson
the easiest way to is to open your monitor and select still that should give you an image. If you then right click on the image it should give you a path statement. If you enter that path into a browser you will get just that image.
then you can use a socket in your ap[p to get an image on request. I would definetly add some code so it only checks when a motion alarm has been triggered to ease the load, but i would think that 1 fps wouldnt be enough as like with anpr we need a few grabs at the same position. To start with maybe you could just use a dedicated cam to give large faces in frame then look at a wider view?
Posted: Wed May 17, 2006 9:31 pm
by zoneminder
There are a couple of easy ways to grab the current image from a monitor. If you are on the ZM server then just use 'zmu -i', otherwise you can call zms with mode=single to return a single image.
Posted: Wed May 17, 2006 9:48 pm
by jameswilson
Phil, slightly of topic zmu? would this be better for my linux viewer (ie lighter) as i currently use zms?
Posted: Wed May 17, 2006 10:05 pm
by zoneminder
Zmu is probably easier if you want to get a single image (written to a file) and you are on the ZM server. If you want it sent over the network or to a remote machine, or want a stream, then zms is the thing to use.
Posted: Wed May 17, 2006 10:07 pm
by jameswilson
well all i use at the mo is single images in all my viewers and i never did get that raw thing working!!
Posted: Fri May 19, 2006 10:04 am
by zoneminder
'Raw' (and even zipped raw) should all be in there in 1.22.1, was there some problem with it?
Posted: Fri May 19, 2006 1:46 pm
by maciekc
jameswilson wrote:well all i use at the mo is single images in all my viewers and i never did get that raw thing working!!
Hey James.
I can explain you the raw format if you want, it is very simple to display it.
Posted: Fri May 19, 2006 6:37 pm
by jameswilson
thanks mate but i think i ought to get my head around mjpeg first unless raw is easier