import os def draw_debug_img(html_path): err_cnt = 0 with open(html_path, 'w') as html: html.write('\n
\n') html.write('{filename}\n GT') html.write(' | GT\n | ' % (base))
html.write('PPOCRV2\n | ' %
(base_2))
html.write('ppocr_mobile\n | ' %
(base_3))
html.write("