Traceback (most recent call last):
File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 257, in process
return self.handle()
File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 248, in handle
return self._delegate(fn, self.fvars, args)
File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 488, in _delegate
return handle_class(cls)
File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 466, in handle_class
return tocall(*args)
File "/root/chineseocr/app.py", line 172, in POST
rightAdjustAlph=0.01,##对检测的文本行进行向右延伸
File "/root/chineseocr/main.py", line 93, in model
boxes,scores = self.box_cluster(img,boxes,scores,**args)
File "/root/chineseocr/main.py", line 59, in box_cluster
scores[:, np.newaxis],
TypeError: list indices must be integers or slices, not tuple
Traceback (most recent call last): File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 257, in process return self.handle() File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 248, in handle return self._delegate(fn, self.fvars, args) File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 488, in _delegate return handle_class(cls) File "/root/anaconda3/envs/chineseocr/lib/python3.6/site-packages/web/application.py", line 466, in handle_class return tocall(*args) File "/root/chineseocr/app.py", line 172, in POST rightAdjustAlph=0.01,##对检测的文本行进行向右延伸 File "/root/chineseocr/main.py", line 93, in model boxes,scores = self.box_cluster(img,boxes,scores,**args) File "/root/chineseocr/main.py", line 59, in box_cluster scores[:, np.newaxis], TypeError: list indices must be integers or slices, not tuple