EasyOCR segfault when used with Decord

19 Views Asked by At
  • EasyOCR version: 1.7.1
  • Decord version: 0.6.0
  • Python version: 3.11.7

Minimum reproducible example:

import decord
import easyocr

ocr = easyocr.Reader(['en'])

[1] 1106258 segmentation fault (core dumped) python

This post disables CUDA which makes processing slow, and downgrading OpenCV is not possible due to incompatibility with my Python version and should not be required anyway as a fix should has been merged.

1

There are 1 best solutions below

0
hkchengrex On

Switching the order of import somehow works. CUDA can still be used.

import easyocr
import decord

ocr = easyocr.Reader(['en'])