Real-time tracking of multiple moving objects using split-and-merge contour models based on crossing detection