You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "D:\project\pp-structure\main.py", line 12, in<module>
save_structure_res(result, save_folder, os.path.basename(img_path).split('.')[0])
File "D:\project\pp-structure\venv\lib\site-packages\paddleocr\ppstructure\predict_system.py", line 199, in save_structure_res
f.write('{}\n'.format(json.dumps(region)))
File "D:\Python\Python39\lib\json\__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "D:\Python\Python39\lib\json\encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "D:\Python\Python39\lib\json\encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "D:\Python\Python39\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ndarray is not JSON serializable
ndarray json dump的出错了, 默认table_engine(img)没问题
The text was updated successfully, but these errors were encountered:
官方例子, 主要是修改了result = table_engine(img, True)想获取返回的字符
具体报错如下:
ndarray json dump的出错了, 默认table_engine(img)没问题
The text was updated successfully, but these errors were encountered: