Line crossing detection function is used to detect people, vehicles, or objects crossing a predefined virtual line, and some certain actions can be taken when the alarm is triggered. The crossing direction can be set to bidirectional, from left to right, or from right to left. And for intelligent device and smart device, the APIs or commands called to configure line crossing alarm rule, arming schedule, alarm linkage, and so on, are different.