use opencv to process image