How to modify values to improve accuracy of Tripwire and ROI?

Hi

We have setup VST and AI-NVR, but the Tripwire and ROI are not really robust in different scenes.
The startup command is
sudo docker compose -f compose_nx16.yaml up -d --force-recreate

From the demo video, obviously you can see they get bad detecting and counting results.
We expect that one person passes through the line, in or out will add 1.
Could you guide us how to set tripwire to get better results ?
How to modify values to improve accuracy of Tripwire and ROI ?

Thanks