o
    'Õj§  ã                   @   s8  d dl mZ d dl mZ d dl mZ d dl mZ d dlZdgZddlmZm	Z	 dd	l
mZ dd
lmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ddlm Z  ddl!m"Z" ddl#m$Z$m%Z% ddl&m'Z'm(Z( ddl)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddlm2Z2 ddd„Z3dS )é    )Úabsolute_import)Údivision)Úprint_function)Úunicode_literalsNÚbuild_post_processé   )ÚDBPostProcessÚDistillationDBPostProcess)ÚEASTPostProcess)ÚSASTPostProcess)ÚFCEPostProcess)ÚCTCLabelDecodeÚAttnLabelDecodeÚSRNLabelDecodeÚDistillationCTCLabelDecodeÚNRTRLabelDecodeÚSARLabelDecodeÚSEEDLabelDecodeÚPRENLabelDecodeÚViTSTRLabelDecodeÚABINetLabelDecodeÚSPINLabelDecodeÚVLLabelDecodeÚRFLLabelDecodeÚSATRNLabelDecode)ÚClsPostProcess)ÚPGPostProcess)ÚVQASerTokenLayoutLMPostProcessÚDistillationSerPostProcess)ÚVQAReTokenLayoutLMPostProcessÚDistillationRePostProcess)ÚTableMasterLabelDecodeÚTableLabelDecode)ÚPicoDetPostProcess)ÚCTPostProcess)ÚDRRGPostprocess)ÚCANLabelDecodec                 C   sŒ   g d¢}| d dkrddl m} | d¡ t | ¡} |  d¡}|dkr%d S |d ur.|  |¡ ||v s;J td |¡ƒƒ‚t	|ƒdi | ¤Ž}|S )	N) r   r
   r   r   r   r   r   r   r   r   r"   r	   r   r   r   r   r   r   ZDistillationSARLabelDecoder   r   r!   r   r   r    r   r#   r$   r   r%   r&   r   ÚnameÚPSEPostProcessr   )r(   ÚNonezpost process only support {}© )
Zpse_postprocessr(   ÚappendÚcopyÚdeepcopyÚpopÚupdateÚ	ExceptionÚformatÚeval)ÚconfigZglobal_configZsupport_dictr(   Úmodule_nameZmodule_classr*   r*   úe/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddleocr/ppocr/postprocess/__init__.pyr   +   s   



ÿ)N)4Ú
__future__r   r   r   r   r,   Ú__all__Zdb_postprocessr   r	   Zeast_postprocessr
   Zsast_postprocessr   Zfce_postprocessr   Zrec_postprocessr   r   r   r   r   r   r   r   r   r   r   r   r   r   Zcls_postprocessr   Zpg_postprocessr   Z"vqa_token_ser_layoutlm_postprocessr   r   Z!vqa_token_re_layoutlm_postprocessr   r    Ztable_postprocessr!   r"   Zpicodet_postprocessr#   Zct_postprocessr$   Zdrrg_postprocessr%   r&   r   r*   r*   r*   r5   Ú<module>   s*   @