gearing up machine learning infrastructure and opencv hog descriptor settings