The simply way is to use openCV to do that.
Look at http://www.codeproject.com/Articles/23191/Face-and-Eyes-Detection-Using-OpenCV for sample
Pregunta
I'm looking for a software API that can detect pairs of eyes in an image and return the location of them. I'm not too concerned with which programming language the API uses, just need something that I can run on a linux or mac computer in an automated way so that I can batch results to a file.
Solución
The simply way is to use openCV to do that.
Look at http://www.codeproject.com/Articles/23191/Face-and-Eyes-Detection-Using-OpenCV for sample
Otros consejos
I think that OpenCV is what you want. There is a module called objdetect on this lib:
From doc:
objdetect - detection of objects and instances of the predefined classes (for example, faces, eyes, mugs, people, cars, and so on).