o
    {qiS  ã                   @   s\   d dl mZmZmZ ddlmZmZ ddlmZm	Z	 G dd„ deeƒZ
G dd„ de	eƒZd	S )
é   )Úadd_simple_inference_argsÚget_subcommand_argsÚperform_simple_inferenceé   )ÚPaddleXPredictorWrapperÚPredictorCLISubcommandExecutor)ÚTextDetectionMixinÚ$TextDetectionSubcommandExecutorMixinc                   @   s$   e Zd Zedd„ ƒZedd„ ƒZdS )ÚTextDetectionc                 C   ó   dS )NzPP-OCRv5_server_det© ©Úselfr   r   úg/home/app/PaddleOCR-VL/.venv_paddleocr/lib/python3.10/site-packages/paddleocr/_models/text_detection.pyÚdefault_model_name   ó   z TextDetection.default_model_namec                 C   s   t ƒ S ©N)ÚTextDetectionSubcommandExecutor)Úclsr   r   r   Úget_cli_subcommand_executor   s   z)TextDetection.get_cli_subcommand_executorN)Ú__name__Ú
__module__Ú__qualname__Úpropertyr   Úclassmethodr   r   r   r   r   r
      s
    
r
   c                   @   s(   e Zd Zedd„ ƒZdd„ Zdd„ ZdS )r   c                 C   r   )NZtext_detectionr   r   r   r   r   Úsubparser_name%   r   z.TextDetectionSubcommandExecutor.subparser_namec                 C   s   t |ƒ |  |¡ d S r   )r   Z_add_text_detection_args)r   Z	subparserr   r   r   Ú_update_subparser)   ó   z1TextDetectionSubcommandExecutor._update_subparserc                 C   s   t |ƒ}tt|ƒ d S r   )r   r   r
   )r   ÚargsÚparamsr   r   r   Úexecute_with_args-   r   z1TextDetectionSubcommandExecutor.execute_with_argsN)r   r   r   r   r   r   r    r   r   r   r   r   "   s
    
r   N)Z
_utils.clir   r   r   Úbaser   r   Z_text_detectionr   r	   r
   r   r   r   r   r   Ú<module>   s   

ÿ