Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 469, in _add_permission

self.sm.add_permissions_view(baseview.base_permissions, baseview.__class__.__name__)


 "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", line 819, in add_permissions_view

if perm_view.permission.name not in base_permissions:
AttributeError: 'NoneType' object has no attribute 'name'

Traceback (most recent call last):


 "gen.py", line 140, in <module>

main(args.viz)


 "gen.py", line 95, in main

RV3 = RendererV3(DATA_PATH,max_time=SECS_PER_IMG)


 "D:\detection\SynthText-master\synthgen.py", line 369, in __init__

self.colorizer = Colorize(data_dir)


 "D:\detection\SynthText-master\colorize3_poisson.py", line 145, in __init__

self.font_color = FontColor(col_file=osp.join(model_dir,'models/colors_new.cp'))


 "D:\detection\SynthText-master\colorize3_poisson.py", line 54, in __init__

self.colorsLAB = np.squeeze(cv.cvtColor(self.colorsLAB[None,:,:],cv.cv.CV_RGB2Lab))
AttributeError: 'module' object has no attribute 'cv'