X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FROBO%2Fretail_app%2Finventry%2Fretail_app.py;h=7de018ec399024ac3a4cae0432849f91d4de0fbf;hb=2bb7ee38688a8ad0fac221d0517598d511e5f1d2;hp=a5586424bb815f7841fdd587bbc134175c56e358;hpb=a54d0db942effbeaf79123deb001731f605f0d7a;p=ealt-edge.git diff --git a/example-apps/ROBO/retail_app/inventry/retail_app.py b/example-apps/ROBO/retail_app/inventry/retail_app.py index a558642..7de018e 100644 --- a/example-apps/ROBO/retail_app/inventry/retail_app.py +++ b/example-apps/ROBO/retail_app/inventry/retail_app.py @@ -45,35 +45,36 @@ class inventry_info: Store the data and manage multiple input video feeds """ def __init__(self, current_count=0, total_count=0, time=0): - self.type = "Shelf_INV" - self.labels = "Bottles" - self.current_count = current_count - self.total_count = total_count - self.time = time + self.type = "Shelf_INV" + self.labels = "Bottles" + self.current_count = current_count + self.total_count = total_count + self.time = time def setcurrentcount(self, current_count): - self.current_count = current_count + self.current_count = current_count def settotalcount(self, total_count): - self.total_count = total_count + self.total_count = total_count def getcurrentcount(self): - return self.current_count + return self.current_count def gettotalcount(self): - return self.total_count + return self.total_count def setlabel(self, labels): - self.labels = labels + self.labels = labels def getlabel(self): - return self.labels + return self.labels def settime(self, time): - self.labels = time + self.labels = time def gettime(self): - return self.time + return self.time + def store_data(inventry_info): """