
    }-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                   P     e Zd Z fdZed             Zed             Zd Z xZ	S )FormulaRecognitionc                 H    i | _          t                      j        |i | d S N)_extra_init_argssuper__init__)selfargskwargs	__class__s      e/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddleocr/_models/formula_recognition.pyr   zFormulaRecognition.__init__   s/    
 !#$)&)))))    c                     dS )NzPP-FormulaNet_plus-M r   s    r   default_model_namez%FormulaRecognition.default_model_name    s    %%r   c                     t                      S r   )$FormulaRecognitionSubcommandExecutor)clss    r   get_cli_subcommand_executorz.FormulaRecognition.get_cli_subcommand_executor$   s    3555r   c                     | j         S r   )r   r   s    r   &_get_extra_paddlex_predictor_init_argsz9FormulaRecognition._get_extra_paddlex_predictor_init_args(   s    $$r   )
__name__
__module____qualname__r   propertyr   classmethodr   r   __classcell__)r   s   @r   r
   r
      s}        * * * * * & & X& 6 6 [6% % % % % % %r   r
   c                   0    e Zd Zed             Zd Zd ZdS )r   c                     dS )Nformula_recognitionr   r   s    r   subparser_namez3FormulaRecognitionSubcommandExecutor.subparser_name-   s    $$r   c                 $    t          |           d S r   )r   )r   	subparsers     r   _update_subparserz6FormulaRecognitionSubcommandExecutor._update_subparser1   s    !),,,,,r   c                 N    t          |          }t          t          |           d S r   )r   r   r
   )r   r   paramss      r   execute_with_argsz6FormulaRecognitionSubcommandExecutor.execute_with_args4   s&    $T** !3V<<<<<r   N)r    r!   r"   r#   r)   r,   r/   r   r   r   r   r   ,   sK        % % X%- - -= = = = =r   r   N)	
_utils.clir   r   r   baser   r   r
   r   r   r   r   <module>r2      s            
 J I I I I I I I% % % % %0 % % %*
= 
= 
= 
= 
=+I 
= 
= 
= 
= 
=r   