Does nvdsanalytics plugin support configuration in code?

For your question, you can refer NVDSAlalytics - change line coordinates on the fly