mrl
Results
2
comments of
mrl
> _🤖_ > > 嘿,@lhtpluto!很高兴再次见到你。希望你一切都好! > > 您遇到的 "无法找到此 WMF 文件的加载器" 的 OSError 可能是由于在 RapidOCRDocLoader 类中使用的 Python Imaging Library (PIL) 不支持 Windows Metafile Format (WMF)。 > > 在代码中,RapidOCRDocLoader 类试图使用 PIL...
```python if isinstance(part, ImagePart): try: image = Image.open(BytesIO(part._blob)) result, _ = ocr(np.array(image)) if result: ocr_result = [line[1] for line in #result] resp += "\n".join(ocr_result) except Exception as e: print(f"图片无法识别:{e}") ```...