  import argparse
import os

from ppocr.data import create_operators
from ppocr.utils.logging import get_logger
from ppocr.utils.utility import initial_logger
from ppocr.utils.utility import load_config
from ppocr.utils.utility import parse_args
from ppocr.utils.utility import show_config
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr.utils.utility import get_image_file_list_recursive
from ppocr.utils.utility import check_and_read_gif
from ppocr.utils.utility import get_image_file_list
from ppocr