Image processing using OpenCV library