• myhloli's avatar
    perf(model): add threading lock for OCR model initialization · 04478095
    myhloli authored
    - Introduce a lock to synchronize access to OCR model initialization- This change improves thread safety when multiple threads access the OCR model concurrently
    - The lock ensures that the OCR model is initialized only once, even in multi-threaded scenarios
    04478095
model_init.py 5.23 KB