Re-implemented LBP cascades detection averaging