Moving object detection in heterogeneous conditions in embedded systems