how can i detect only a face from an image...i want to tak an image fron a user..nd display only the face can use ajax for the same ...

No one is going to write this code for you. Show us your effort, rather than making us do your homework.

.btw its not ma homework .it a smal part of the project i m doing..nd i did try ..things lik " jcrop nd ajax face detection control. bt its nt as perfect as i want .nd as i hv 2 it in short tym i posted it here

yeah actully i used jcrop...wherein i dnt have to save the image in database as it leads to security issues i used jcrop which crops image there itself..but the problem with all this is it crops face in rectangle shape..i want a perfect face only :) ..nd thanx alot for your help.