Hi ,
I tried ui element detection based on only non_text (ip) and without considering text. Changed self.compos_json = json.load(open(pjoin(self.non_text_dir, self.file_name + '.json'))) instead of merge .
The ui element detection was followed by layout recognition but it was showing some errors as follows ,
TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_23304\3842284579.py in
----> 1 gui.recognize_layout()
~\UI_RL\UIED\GUI-Perceptual-Grouping\GUI_copy.py in recognize_layout(self, is_save)
224 '''
225 Slice the GUI into hierarchical blocks based on the recognized Compos
--> 226 '''
227 blocks, non_blocked_compos = slice_blocks(self.compos, 'v')
228 self.blocks = blocks
~\UI_RL\UIED\GUI-Perceptual-Grouping\GUI_copy.py in cvt_compos_json_to_dataframe(self)
156 '''
157 # *** step1 ***
--> 158 def cvt_compos_json_to_dataframe(self):
159
160
~\UI_RL\UIED\GUI-Perceptual-Grouping\layout\obj\Compos_DF.py in init(self, json_file, json_data, gui_img)
15 def init(self,json_file=None, json_data=None, gui_img=None):
16 self.json_file = json_file
---> 17 self.json_data = self.json_data if json_data is not None else json.load(open(self.json_file)) ##updates code
18 self.compos_json = self.json_data['compos']
19 self.compos_dataframe = self.cvt_json_to_df()
TypeError: expected str, bytes or os.PathLike object, not NoneType
Followed the procedure mentioned in the repo , it would be helpful if some insight on this error can be given
Hi ,
I tried ui element detection based on only non_text (ip) and without considering text. Changed self.compos_json = json.load(open(pjoin(self.non_text_dir, self.file_name + '.json'))) instead of merge .
The ui element detection was followed by layout recognition but it was showing some errors as follows ,
TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_23304\3842284579.py in
----> 1 gui.recognize_layout()
~\UI_RL\UIED\GUI-Perceptual-Grouping\GUI_copy.py in recognize_layout(self, is_save)
224 '''
225 Slice the GUI into hierarchical blocks based on the recognized Compos
--> 226 '''
227 blocks, non_blocked_compos = slice_blocks(self.compos, 'v')
228 self.blocks = blocks
~\UI_RL\UIED\GUI-Perceptual-Grouping\GUI_copy.py in cvt_compos_json_to_dataframe(self)
156 '''
157 # *** step1 ***
--> 158 def cvt_compos_json_to_dataframe(self):
159
160
~\UI_RL\UIED\GUI-Perceptual-Grouping\layout\obj\Compos_DF.py in init(self, json_file, json_data, gui_img)
15 def init(self,json_file=None, json_data=None, gui_img=None):
16 self.json_file = json_file
---> 17 self.json_data = self.json_data if json_data is not None else json.load(open(self.json_file)) ##updates code
18 self.compos_json = self.json_data['compos']
19 self.compos_dataframe = self.cvt_json_to_df()
TypeError: expected str, bytes or os.PathLike object, not NoneType
Followed the procedure mentioned in the repo , it would be helpful if some insight on this error can be given