Capture images using OpenCV libraries