Fork自 PaddlePaddle / PaddleOCR
the second test_img_dir assignment is not necessary: after it is defined, it's not modified. We can use it anyway.