윤영준 윤영준 05-23
postprocess_draft0.1
@936fe0e40c92e532fe5302f97277fdd1d6567592
postprocess_draft.py
--- postprocess_draft.py
+++ postprocess_draft.py
@@ -133,10 +133,20 @@
         self.cctv_longitude = request.headers.get('x-cctv-longitude', 'Not provided')
         self.area_percent = request.headers.get('x-area-percentage')
 
+        self.image = request.files['image']
+        self.image_type = request.headers.get('Content-Type')
+        self.mask = request.files['mask']
+        self.seg_image = request.files['seg_mask']
+        self.time_sent = time.time()
+
         self.cctv_info = {
             'cctv_name' : self.cctv_name,
             'cctv_latitude' : self.cctv_latitude,
             'cctv_longitude' : self.cctv_longitude,
+            'source_frame' : self.image,
+            'frame_mask' : self.mask,
+            'seg_frame' : self.seg_image,
+            'time_sent' : self.time_sent
         }
         self.memory[self.cctv_info['cctv_name']] = self.cctv_info
         pass_fail = self.pass_fail()
Add a comment
List