Update to OpenCV version 2

This update is for OpenCV version 2 support, which is installed via the **libopencv-dev** package in Ubuntu. Please confirm if this update is okay.