implement of computer vision algorithm using opencv