EasyOCR Segmentation fault (core dumped)

EasyOCR Segmentation fault (core dumped)

我遇到了这个问题

pip install easyocr

在 python 环境

import easyocr
reader = easyocr.Reader(['en'])

result = reader.readtext('./reports/dilate/NP6221833_126.png', workers=1)

终于

Segmentation fault (core dumped)

解决了降级到 2021 年 11 月版 opencv 的问题

pip install opencv-python-headless==4.5.4.60