
    }-j
                     :     G d  d          Z  G d d          ZdS )c                   4     e Zd Zddddddd fd
Zd Z xZS )TextDetectionMixinNlimit_side_len
limit_typethresh
box_threshunclip_ratioinput_shapec                V    ||||||d| _          t                      j        di | d S )Nr    )_extra_init_argssuper__init__)	selfr   r   r   r   r	   r
   kwargs	__class__s	           a/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddleocr/_models/_text_detection.pyr   zTextDetectionMixin.__init__   sK     -$$(&!
 !
 	""6"""""    c                     | j         S )N)r   )r   s    r   &_get_extra_paddlex_predictor_init_argsz9TextDetectionMixin._get_extra_paddlex_predictor_init_args&   s    $$r   )__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      se         # # # # # # #*% % % % % % %r   r   c                       e Zd Zd ZdS )$TextDetectionSubcommandExecutorMixinc                 f   |                     dt          d           |                     dt          d           |                     dt          d           |                     dt          d	           |                     d
t          d           |                     ddt          dd           d S )Nz--limit_side_lenzFThis sets a limit on the side length of the input image for the model.)typehelpz--limit_typeziThis determines how the side length limit is applied to the input image before feeding it into the model.z--threshzDetection pixel threshold for the model. Pixels with scores greater than this threshold in the output probability map are considered text pixels.z--box_threshzDetection box threshold for the model. A detection result is considered a text region if the average score of all pixels within the border of the result is greater than this threshold.z--unclip_ratioz|Expansion coefficient, which expands the text region using this method. The larger the value, the larger the expansion area.z--input_shape   )CHWzInput shape of the model.)nargsr   metavarr   )add_argumentintstrfloat)r   	subparsers     r   _add_text_detection_argsz=TextDetectionSubcommandExecutorMixin._add_text_detection_args+   s	   Y 	 	
 	
 	

 	| 	 	
 	
 	

 	 e 	 	
 	
 	

 	 L 	 	
 	
 	

 	 P 	 	
 	
 	

 	#, 	 	
 	
 	
 	
 	
r   N)r   r   r   r+   r   r   r   r   r   *   s#         
  
  
  
  
r   r   N)r   r   r   r   r   <module>r,      s_    % % % % % % % %4!
 !
 !
 !
 !
 !
 !
 !
 !
 !
r   