
    }-j                     b    d dl mZmZmZ ddlmZmZ  G d de          Z G d de          ZdS )	   )add_simple_inference_argsget_subcommand_argsperform_simple_inference   )PaddleXPredictorWrapperPredictorCLISubcommandExecutorc                   V     e Zd Zdd fd
Zed             Zed             Zd Z xZ	S )TextRecognitionN)input_shapec                L    d|i| _          t                      j        di | d S )Nr    )_extra_init_argssuper__init__)selfr   kwargs	__class__s      b/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddleocr/_models/text_recognition.pyr   zTextRecognition.__init__   s9     ;!
 	""6"""""    c                     dS )NzPP-OCRv5_server_recr   r   s    r   default_model_namez"TextRecognition.default_model_name#   s    $$r   c                     t                      S N)!TextRecognitionSubcommandExecutor)clss    r   get_cli_subcommand_executorz+TextRecognition.get_cli_subcommand_executor'   s    0222r   c                     | j         S r   )r   r   s    r   &_get_extra_paddlex_predictor_init_argsz6TextRecognition._get_extra_paddlex_predictor_init_args+   s    $$r   )
__name__
__module____qualname__r   propertyr   classmethodr   r   __classcell__)r   s   @r   r
   r
      s         	# 	# 	# 	# 	# 	# 	# % % X% 3 3 [3% % % % % % %r   r
   c                   0    e Zd Zed             Zd Zd ZdS )r   c                     dS )Ntext_recognitionr   r   s    r   subparser_namez0TextRecognitionSubcommandExecutor.subparser_name0   s    !!r   c                 b    t          |           |                    ddt          dd           d S )Nz--input_shape   )CHWzInput shape of the model.)nargstypemetavarhelp)r   add_argumentint)r   	subparsers     r   _update_subparserz3TextRecognitionSubcommandExecutor._update_subparser4   sF    !),,,#, 	 	
 	
 	
 	
 	
r   c                 N    t          |          }t          t          |           d S r   )r   r   r
   )r   argsparamss      r   execute_with_argsz3TextRecognitionSubcommandExecutor.execute_with_args>   s%    $T** &99999r   N)r    r!   r"   r#   r)   r6   r:   r   r   r   r   r   /   sK        " " X"
 
 
: : : : :r   r   N)	
_utils.clir   r   r   baser   r   r
   r   r   r   r   <module>r=      s            
 J I I I I I I I% % % % %- % % %0: : : : :(F : : : : :r   