The principle is to set up only motion detection in NVR, and do the intrusion and line cross in camera. Enable virtual driver in NVR, so you will be able to see the links to log in to camera directly in the camera management page of NVR.
First, in NVR - basic events- tick enable motion...