I install paddle_ocr and paddlepaddle packages also but i got an Error (ModuleNotFoundError: No module named 'paddle.fluid.core_noavx'). how to solve this type of error provide your suggestions here...below my code was attached
from paddleocr import PaddleOCR,draw_ocr
# Paddleocr supports Chinese, English, French, German, Korean and Japanese.
# You can set the parameter `lang` as `ch`, `en`, `french`, `german`, `korean`, `japan`
# to switch the language model in order.
ocr = PaddleOCR(use_angle_cls=True, lang='en') # need to run only once to download and load model into memory
img_path = 'PaddleOCR/doc/imgs_en/img_12.jpg'
result = ocr.ocr(img_path, cls=True)
for line in result:
print(line)
It looks like the
paddle
package is developed for multiple platforms including non-x86 architectures that don't have the AVX instruction set. When the package is compiled for each architecture it checks if AVX is implemented and then modifies the packaging to have either thepaddle.fluid.core_avx
orpaddle.fluid.core_noavx
namespace.If you want to handle this programmatically,
paddle.fluid.core
has a variablehas_noavx_core
that you can check.