diff python/storage.py @ 909:cd038493f8c6

finished image extraction script for HoG-SVM training
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 26 Jun 2017 17:45:32 -0400
parents b297525b2cbf
children b58a1061a717
line wrap: on
line diff
--- a/python/storage.py	Mon Jun 26 00:10:35 2017 -0400
+++ b/python/storage.py	Mon Jun 26 17:45:32 2017 -0400
@@ -416,7 +416,7 @@
                 dbfn = filename
             cursor.execute('INSERT INTO prototypes (id, dbfilename, trajectory_type, nMatchings) VALUES ({},\"{}\",\"{}\",{})'.format(protoId, dbfn, trajectoryType, n))
         cursor.execute('SELECT * from sqlite_master WHERE type = \"table\" and name = \"{}\"'.format(tableNames[trajectoryType]))
-        if len(cursor.fetchall) == 0:
+        if len(cursor.fetchall()) == 0:
             pass # save prototype trajectory data
     except sqlite3.OperationalError as error:
         printDBError(error)