
    9i                     :    S SK r S SKrSSKJrJr   " S S\5      rg)    N   )BaseCVResult	JsonMixinc                   F    \ rS rSrSrS\R                  4S jrS rS r	Sr
g)	DocTrResult   a  
Result class for DocTr, encapsulating the output of a document image processing task.

Attributes:
    (inherited from BaseCVResult): Any attributes defined in the base class.

Methods:
    _to_img(self) -> np.ndarray:
        Converts the stored image result to a numpy array.
returnc                 <    [         R                  " U S   5      nSU0$ )N	doctr_imgres)nparray)selfresults     o/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/inference/models/image_unwarping/result.py_to_imgDocTrResult._to_img"   s    ${+,v    c                     [         R                  " U 5      nUR                  S5        SUS'   [        R                  " U/UQ70 UD6$ )N	input_imgz...r   )copydeepcopypopr   _to_strr   argskwargsdatas       r   r   DocTrResult._to_str&   sA    }}T"![  7777r   c                     [         R                  " U 5      nUR                  S5        [        R                  " U/UQ70 UD6$ )Nr   )r   r   r   r   _to_jsonr   s       r   r!   DocTrResult._to_json,   s7    }}T"!!$8888r    N)__name__
__module____qualname____firstlineno____doc__r   ndarrayr   r   r!   __static_attributes__r#   r   r   r   r      s!    	 89r   r   )r   numpyr   common.resultr   r   r   r#   r   r   <module>r-      s      49, 9r   