Remove cv:: and the extra include. Using COLOR_BGR2GRAY instead of CV_BGR2GRAY