SynthText_Chinese_version icon indicating copy to clipboard operation
SynthText_Chinese_version copied to clipboard

Hi i have a problem

Open jjccyy opened this issue 6 years ago • 1 comments

when i run gen.py, i have problem ,my opencv version is 2.4.8,i don't know how to solve

wit@wit:~/SynthText_Chinese_version-master$ python gen.py getting data.. -> done Storing the output in: results/SynthText_cartoon_viz.h5 data/newsgroup/安徒生童话故事.txt data/newsgroup/男生贾里-秦文君.txt data/newsgroup/节日集会朗诵诗选.txt data/newsgroup/小时候就在想的事.txt data/newsgroup/小灵通漫游未来.txt data/newsgroup/一千零一夜.txt data/newsgroup/中国童话百篇.txt data/newsgroup/浪漫鼠德佩罗.TXT data/newsgroup/猫咪分局.txt 20551 Traceback (most recent call last): File "gen.py", line 223, in main(args.viz) File "gen.py", line 130, in main RV3 = RendererV3(DATA_PATH,max_time=SECS_PER_IMG) File "/home/wit/SynthText_Chinese_version-master/synthgen.py", line 370, in init self.colorizer = Colorize(data_dir) File "/home/wit/SynthText_Chinese_version-master/colorize3_poisson.py", line 147, in init self.font_color = FontColor(col_file=osp.join(model_dir,'models/colors_new.cp')) File "/home/wit/SynthText_Chinese_version-master/colorize3_poisson.py", line 56, in init self.colorsLAB = np.squeeze(cv.cvtColor(self.colorsLAB[None,:,:],cv.cv.CV_RGB2Lab)) AttributeError: 'module' object has no attribute 'cv'

jjccyy avatar Mar 14 '18 13:03 jjccyy

modify cv.cv.CV_RGB2Lab --> cv.COLOR_RGB2Lab

ElagJun avatar Apr 16 '18 03:04 ElagJun