Yes, the first piece of code picks up on 1 face inside a picture.
Does it give you a traceback, or just not pick up any face?
Make sure you have all the required modules and the dll from this site.
Head posistion needs to be frontal, and not too angled.
This was written in Python2.6 and uses PIL 1.1.6 I beleive.
It can now recognize multiple faces, it is real-time and requires a webcam.
#fdtest.cpp mostly ported to python
#Multi face
#Tech B.
#3/9/2010
#Version 1.5
from VideoCapture import Device
from ctypes import *
import Image, ImageDraw, os, time, pygame, sys
from pygame.locals import *
from psyco import full
full()
#add style and clear screen
os.system('color 02')
fd = cdll.LoadLibrary("fdlib.dll") #dll found at http://www.kyb.mpg.de/bs/people/kienzle/facedemo/facedemo.htm
#assignments
cam = Device()
pygame.init()
screen = pygame.display.set_mode((640,480))
pygame.display.set_caption('Facial Recognition')
font = pygame.font.SysFont("Curier",26)
pixX = 0
pixY = 0
pixList = []
w = c_int(640)
h = c_int(480)
threshold = c_int(0)
x = c_int * 256
y = c_int * 256
size = c_int * 256
x = x()
y = y()
size = size()
graydata = c_ubyte * (640*480)
graydata = graydata()
fps = 25.0
while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT: sys.exit()
im = cam.getImage()
draw = ImageDraw.Draw(im)
img = im.convert("L") #convert to grayscale
imd = list(img.getdata()) #graydata needed
cnt = 0
pixX = 0
pixY = 0
cnt = 0
for pix in imd: #Convert python data types to ctypes
graydata[cnt] = imd[cnt]
cnt+=1
fd.fdlib_detectfaces(byref(graydata), w, h, threshold)
n = fd.fdlib_getndetections() #number of faces
i = 0
while i < n:
fd.fdlib_getdetection(c_int(i), x, y, size)
bBoxTres = size[0]/2
draw.rectangle([(x[0]+bBoxTres,y[0]+bBoxTres),(x[0]-bBoxTres,y[0]-bBoxTres)], outline=224)
i += 1
faceNumber = font.render('Number of Faces: '+str(n), True, (46,224,1))
imn = pygame.image.frombuffer(im.tostring(), (640,480), "RGB")
screen.blit(imn, (0,0))
screen.blit(faceNumber,(0,0))
pygame.display.flip()
pygame.time.delay(int(1000 * 1.0/fps))