Mercurial Hosting > traffic-intelligence
diff scripts/classify-objects.py @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 15 Jun 2018 11:19:10 -0400 |
parents | a13f47c8931d |
children | 49c0bb6eacc2 |
line wrap: on
line diff
--- a/scripts/classify-objects.py Fri Jun 15 11:18:43 2018 -0400 +++ b/scripts/classify-objects.py Fri Jun 15 11:19:10 2018 -0400 @@ -1,13 +1,13 @@ #! /usr/bin/env python3 -import cvutils, moving, ml, storage, utils +import sys, argparse import numpy as np -import sys, argparse -#from cv2.ml import SVM_RBF, SVM_C_SVC import cv2 from scipy.stats import norm, lognorm +from trafficintelligence import cvutils, moving, ml, storage, utils + # TODO add mode detection live, add choice of kernel and svm type (to be saved in future classifier format) parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene')