_
This commit is contained in:
+1
-5
@@ -259,12 +259,8 @@ class DFLJPG(object):
|
|||||||
|
|
||||||
self.dfl_dict['ie_polys'] = ie_polys
|
self.dfl_dict['ie_polys'] = ie_polys
|
||||||
|
|
||||||
def get_seg_ie_polys(self): return self.dfl_dict.get('seg_ie_polys',None)
|
def get_seg_ie_polys(self): return self.dfl_dict.get('seg_ie_polys',None)
|
||||||
def set_seg_ie_polys(self, seg_ie_polys):
|
def set_seg_ie_polys(self, seg_ie_polys):
|
||||||
if seg_ie_polys is not None and \
|
|
||||||
not isinstance(seg_ie_polys, dict):
|
|
||||||
seg_ie_polys = seg_ie_polys.dump()
|
|
||||||
|
|
||||||
self.dfl_dict['seg_ie_polys'] = seg_ie_polys
|
self.dfl_dict['seg_ie_polys'] = seg_ie_polys
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ def merge(input_dir):
|
|||||||
io.log_info(f"No points found in {json_filepath}, skipping.")
|
io.log_info(f"No points found in {json_filepath}, skipping.")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
dflimg.set_seg_ie_polys (seg_ie_polys)
|
dflimg.set_seg_ie_polys ( seg_ie_polys.dump() )
|
||||||
dflimg.save()
|
dflimg.save()
|
||||||
|
|
||||||
json_filepath.unlink()
|
json_filepath.unlink()
|
||||||
|
|||||||
Reference in New Issue
Block a user