change calibration module to use C++ opencv