Using Bilateral Filter with Webcam

cv2.bilateralFilter(src, d, sigmaColor, sigmaSpace[, dst[, borderType]]) If you want to apply cv2.bilaterFilter() in near real-time applications such as using webcam or read video stream as the image input, here’re some tricks: The value of sigmaSpace should be kept as small as possible. When using sigmaSpace larger than 5, for example, with 640x480 input size, the processing time will make your application extremely laggy. Or you can scale down the original image to apply bilateralFilter on, so that the bilateral filter can process the smaller input faster. [Read More]