We propose a novel probabilistic method for detection of objects in noisy images. The method uses results from percolation and random graph theories. We present an algorithm that allows to detect objects of unknown shapes in the presence of random noise. The noise density is assumed to be unknown and can be very irregular. The algorithm has linear complexity and exponential accuracy, and is appropriate for real-time systems. We prove results on consistency and algorithmic complexity of our procedure.