--- postprocess_draft.py
+++ postprocess_draft.py
... | ... | @@ -133,10 +133,20 @@ |
133 | 133 |
self.cctv_longitude = request.headers.get('x-cctv-longitude', 'Not provided') |
134 | 134 |
self.area_percent = request.headers.get('x-area-percentage') |
135 | 135 |
|
136 |
+ self.image = request.files['image'] |
|
137 |
+ self.image_type = request.headers.get('Content-Type') |
|
138 |
+ self.mask = request.files['mask'] |
|
139 |
+ self.seg_image = request.files['seg_mask'] |
|
140 |
+ self.time_sent = time.time() |
|
141 |
+ |
|
136 | 142 |
self.cctv_info = { |
137 | 143 |
'cctv_name' : self.cctv_name, |
138 | 144 |
'cctv_latitude' : self.cctv_latitude, |
139 | 145 |
'cctv_longitude' : self.cctv_longitude, |
146 |
+ 'source_frame' : self.image, |
|
147 |
+ 'frame_mask' : self.mask, |
|
148 |
+ 'seg_frame' : self.seg_image, |
|
149 |
+ 'time_sent' : self.time_sent |
|
140 | 150 |
} |
141 | 151 |
self.memory[self.cctv_info['cctv_name']] = self.cctv_info |
142 | 152 |
pass_fail = self.pass_fail() |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?