SynthText_Chinese_version icon indicating copy to clipboard operation
SynthText_Chinese_version copied to clipboard

Time out, problem. Only get frame on picture not text

Open lkj1114889770 opened this issue 6 years ago • 0 comments

Traceback (most recent call last): File "/home/zju/lkj/SynthText_Chinese_version/synthgen.py", line 668, in render_text regions['homography_inv'][ireg]) File "/home/zju/lkj/SynthText_Chinese_version/synthgen.py", line 507, in place_text render_res = self.text_renderer.render_sample(font, collision_mask) File "/home/zju/lkj/SynthText_Chinese_version/text_utils.py", line 371, in render_sample text = self.text_source.sample(nline,nchar,text_type) File "/home/zju/lkj/SynthText_Chinese_version/text_utils.py", line 661, in sample print('sample_output',self.fdictkind) File "/home/zju/lkj/SynthText_Chinese_version/text_utils.py", line 710, in sample_para lines = self.get_lines(nline, nword, nchar_max, f=0.35) File "/home/zju/lkj/SynthText_Chinese_version/text_utils.py", line 649, in get_lines if not np.any([ch.isspace() for ch in lines[i]]): File "/home/zju/lkj/SynthText_Chinese_version/text_utils.py", line 649, in if not np.any([ch.isspace() for ch in lines[i]]): File "/home/zju/lkj/SynthText_Chinese_version/common.py", line 38, in signal_handler raise(TimeoutException, colorize(Color.RED, " *** Timed out!", highlight=True)) TypeError: exceptions must derive from BaseException

lkj1114889770 avatar Sep 04 '18 07:09 lkj1114889770