(img_name)
| 146 | |
| 147 | # ----------------------- Main Function ----------------------- |
| 148 | def main(img_name): |
| 149 | image = decode_image(img_name) |
| 150 | result = ppocr_v3.predict(image) |
| 151 | text = tostr_layout_preserving(result) |
| 152 | return text |
| 153 | |
| 154 | if __name__ == "__main__": |
| 155 | from tqdm import tqdm |
no test coverage detected