Mercurial Hosting > traffic-intelligence
comparison scripts/manual-video-analysis.py @ 1242:4cd8ace3552f
major update for classification, allowing the use of neural network classification
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 07 Feb 2024 11:43:03 -0500 |
parents | 5654c9173548 |
children |
comparison
equal
deleted
inserted
replaced
1241:ab4c72b9475c | 1242:4cd8ace3552f |
---|---|
27 # configuration of keys and user types (see moving) | 27 # configuration of keys and user types (see moving) |
28 userTypeNames = ['unknown', | 28 userTypeNames = ['unknown', |
29 'car', | 29 'car', |
30 'pedestrian', | 30 'pedestrian', |
31 'motorcycle', | 31 'motorcycle', |
32 'bicycle', | 32 'cyclist', |
33 'bus', | 33 'bus', |
34 'truck'] | 34 'truck', |
35 'automated'] | |
35 class UserConfiguration(object): | 36 class UserConfiguration(object): |
36 def __init__(self, name, keyNew, keyAddInstant, nAttributes): | 37 def __init__(self, name, keyNew, keyAddInstant, nAttributes): |
37 self.name = name | 38 self.name = name |
38 self.keyNew = ord(keyNew) | 39 self.keyNew = ord(keyNew) |
39 self.keyAddInstant = ord(keyAddInstant) | 40 self.keyAddInstant = ord(keyAddInstant) |