Real-time Approximate Bayesian Computation for Scene Understanding