Added OpenCV references and initialization code.