Mercurial Hosting > traffic-intelligence
comparison scripts/polytracktopdtv.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 | 933670761a57 |
children | d478d3122804 |
comparison
equal
deleted
inserted
replaced
1027:6129296848d3 | 1028:cc5cb04b04b0 |
---|---|
1 #! /usr/bin/env python3 | 1 #! /usr/bin/env python3 |
2 | 2 |
3 import sys, os, datetime, argparse | |
4 import shutil, sqlite3, zipfile | |
5 | |
6 import cv2 | |
3 from pdtv import TsaiCamera, ZipVideo, SyncedVideos, TrackSet, Track, State | 7 from pdtv import TsaiCamera, ZipVideo, SyncedVideos, TrackSet, Track, State |
4 import sys, os, datetime, argparse | 8 |
5 import shutil | 9 from trafficintelligence import utils, cvutils |
6 import sqlite3 | |
7 import zipfile | |
8 import utils | |
9 import cvutils | |
10 import cv2 | |
11 | |
12 | 10 |
13 def zipFolder(inputFolder, outputFile): | 11 def zipFolder(inputFolder, outputFile): |
14 '''Method to compress the content of the inputFolder in the outputFile''' | 12 '''Method to compress the content of the inputFolder in the outputFile''' |
15 zip = zipfile.ZipFile(outputFile, 'w') | 13 zip = zipfile.ZipFile(outputFile, 'w') |
16 for root, dirs, files in os.walk(inputFolder): | 14 for root, dirs, files in os.walk(inputFolder): |