OpenCV

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV has a ton of algorithms for face and pattern detection for use in AR systems.
http://opencv.org/