I've been messing with the main_api.py file of the gen2-people-tracker example, and I've noticed when tracking direction-- left, right, up, down-- it only counts if someone enters from one side, and exits from another side. For example, a person enters from the left side, and exits to the right. It does not work if someone enters from the left side, and exits the left side also.
The logic for this is happening in the script.py file. How can this be modified to work for cases where someone enters from one side, and exits from the same side they entered? I have not found a way to easily modify the script.py file.