Python é excelente pra isso com o wrapper OpenCV