How do I make a motion tracker or Detector?

Thank you for help or suggestions.