Line crossing in Nvdsanalytics

For 1st question, same as your idea, we can have two lines and in the application probe user can subtract one count from other.
For 2nd, max tolerance is 30 degree on each side.