Object detection in seriously degraded images with unbalanced training samples