Optical flow is used to monitor pig herd movement.
Modified angular histograms are used to summarize the OF vectors.
The abnormal pig movement is detected while unloading from a truck.
The detection is performed using support vector machines.
Moving pig measures are used to correct lens and foreshortening distortions.