
    9i                     T    S SK JrJrJr  SSKJrJr   " S S\5      r " S S\5      rg)	   )add_simple_inference_argsget_subcommand_argsperform_simple_inference   )PaddleXPredictorWrapperPredictorCLISubcommandExecutorc                   V   ^  \ rS rSrSS.U 4S jjr\S 5       r\S 5       rS r	Sr
U =r$ )	TextRecognition   N)input_shapec                8   > SU0U l         [        TU ]  " S0 UD6  g )Nr    )_extra_init_argssuper__init__)selfr   kwargs	__class__s      b/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddleocr/_models/text_recognition.pyr   TextRecognition.__init__   s&     ;!
 	"6"    c                     g)NzPP-OCRv5_server_recr   r   s    r   default_model_name"TextRecognition.default_model_name#   s    $r   c                     [        5       $ N)!TextRecognitionSubcommandExecutor)clss    r   get_cli_subcommand_executor+TextRecognition.get_cli_subcommand_executor'   s    022r   c                     U R                   $ r   r   r   s    r   &_get_extra_paddlex_predictor_init_args6TextRecognition._get_extra_paddlex_predictor_init_args+   s    $$$r   r#   )__name__
__module____qualname____firstlineno__r   propertyr   classmethodr    r$   __static_attributes____classcell__)r   s   @r   r
   r
      sD     	# 	# % % 3 3% %r   r
   c                   0    \ rS rSr\S 5       rS rS rSrg)r   /   c                     g)Ntext_recognitionr   r   s    r   subparser_name0TextRecognitionSubcommandExecutor.subparser_name0   s    !r   c                 H    [        U5        UR                  SS[        SSS9  g )Nz--input_shape   )CHWzInput shape of the model.)nargstypemetavarhelp)r   add_argumentint)r   	subparsers     r   _update_subparser3TextRecognitionSubcommandExecutor._update_subparser4   s,    !),#, 	 	
r   c                 :    [        U5      n[        [        U5        g r   )r   r   r
   )r   argsparamss      r   execute_with_args3TextRecognitionSubcommandExecutor.execute_with_args>   s    $T* &9r   r   N)	r&   r'   r(   r)   r*   r2   r@   rE   r,   r   r   r   r   r   /   s    " "
:r   r   N)	
_utils.clir   r   r   baser   r   r
   r   r   r   r   <module>rI      s/    
 J%- %0:(F :r   