These cameras really don't have the CPU horsepower to do this internally.
There are some, who have created open source experiments of doing this is in a external application, that resides outside of the IP Camera that processes a videostream from the IP camera in real-time.
It basically, chops up the video feed it receives from the camera into smaller squares ("Mathematically") and based on what squares detect movement, camera controls can be used to follow whatever is causing the movement, as it moves from place to place in the IP Cameras frame of view.
You can Google it, you will find a few examples. With a search term like "Follow IP camera movement" without the double quotes.