Detection and recognition of moving objects using statistical motion detection and Fourier descriptors