replaced to_string by cv::format
Merge pull request #1625 from ilya-lavrenov:to_string