realize using OpenCV library