
     \i:(                     t   S S/r SSKrSSKrS r\" S5      S 5       r\" S5      S 5       r\" S5      S	 5       r\" S5      S
 5       r\" S5      S 5       r	\" S5      S 5       r
\" S5       " S S5      5       r\" S5       " S S5      5       rS rS r\R                  \R                   R"                  l        g)opkernel    Nc                    ^  U 4S jnU$ )Nc                 \   > U [         R                  T   R                  U R                  '   U $ N)sysmodules__dict____name__)funcmnames    T/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/cv2/gapi/__init__.pyparameterizedregister.<locals>.parameterized   s%    59E##DMM2     )r   r   s   ` r   registerr      s     r   zcv2.gapic                      [         R                  " [        [        [         R                  R
                  U 5      5      5      $ r   )cvgapi_GNetPackagelistmapdetailstripargss    r   networksr      s'    tC		$>?@@r   c                  H    [        [        [        R                  U 5      5      $ r   )r   r   r   GCompileArgr   s    r   compile_argsr       s    BNND)**r   cv2c                  
    / U Q$ r   r   r   s    r   GInr#          T7Nr   c                  
    / U Q$ r   r   r   s    r   GOutr&      r$   r   c                  
    / U Q$ r   r   r   s    r   ginr(   "   r$   r   c                  
    / U Q$ r   r   r   s    r   descr_ofr*   '   r$   r   c                   2   \ rS rSrS r " S S5      r " S S5      r " S S5      r " S	 S
5      r " S S5      r	 " S S5      r
 " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      rSrg )!GOpaque,   c                 .    [         R                  " U5      $ r   )r   GOpaqueTclsargtypes     r   __new__GOpaque.__new__0   s    {{7##r   c                       \ rS rSrS rSrg)GOpaque.Bool3   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   gapiCV_BOOLselfs    r   r3   GOpaque.Bool.__new__4       ;;rww//r   r   Nr   
__module____qualname____firstlineno__r3   __static_attributes__r   r   r   Boolr6   3       	0r   rD   c                       \ rS rSrS rSrg)GOpaque.Int7   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_INTr;   s    r   r3   GOpaque.Int.__new__8       ;;rww~~..r   r   Nr?   r   r   r   IntrG   7       	/r   rM   c                       \ rS rSrS rSrg)GOpaque.Int64;   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_INT64r;   s    r   r3   GOpaque.Int64.__new__<       ;;rww//00r   r   Nr?   r   r   r   Int64rP   ;       	1r   rV   c                       \ rS rSrS rSrg)GOpaque.UInt64?   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   	CV_UINT64r;   s    r   r3   GOpaque.UInt64.__new__@       ;;rww0011r   r   Nr?   r   r   r   UInt64rY   ?       	2r   r_   c                       \ rS rSrS rSrg)GOpaque.DoubleC   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   	CV_DOUBLEr;   s    r   r3   GOpaque.Double.__new__D   r^   r   r   Nr?   r   r   r   Doublerb   C   r`   r   rg   c                       \ rS rSrS rSrg)GOpaque.FloatG   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_FLOATr;   s    r   r3   GOpaque.Float.__new__H   rU   r   r   Nr?   r   r   r   Floatri   G   rW   r   rn   c                       \ rS rSrS rSrg)GOpaque.StringK   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   	CV_STRINGr;   s    r   r3   GOpaque.String.__new__L   r^   r   r   Nr?   r   r   r   Stringrp   K   r`   r   ru   c                       \ rS rSrS rSrg)GOpaque.PointO   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_POINTr;   s    r   r3   GOpaque.Point.__new__P   rU   r   r   Nr?   r   r   r   Pointrw   O   rW   r   r|   c                       \ rS rSrS rSrg)GOpaque.Point2fS   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   
CV_POINT2Fr;   s    r   r3   GOpaque.Point2f.__new__T       ;;rww1122r   r   Nr?   r   r   r   Point2fr~   S       	3r   r   c                       \ rS rSrS rSrg)GOpaque.Point3fW   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   
CV_POINT3Fr;   s    r   r3   GOpaque.Point3f.__new__X   r   r   r   Nr?   r   r   r   Point3fr   W   r   r   r   c                       \ rS rSrS rSrg)GOpaque.Size[   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_SIZEr;   s    r   r3   GOpaque.Size.__new__\   r>   r   r   Nr?   r   r   r   Sizer   [   rE   r   r   c                       \ rS rSrS rSrg)GOpaque.Rect_   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_RECTr;   s    r   r3   GOpaque.Rect.__new__`   r>   r   r   Nr?   r   r   r   Rectr   _   rE   r   r   c                       \ rS rSrS rSrg)GOpaque.Primc   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_DRAW_PRIMr;   s    r   r3   GOpaque.Prim.__new__d   s    ;;rww3344r   r   Nr?   r   r   r   Primr   c   s    	5r   r   c                       \ rS rSrS rSrg)GOpaque.Anyg   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r/   r9   CV_ANYr;   s    r   r3   GOpaque.Any.__new__h   rL   r   r   Nr?   r   r   r   Anyr   g   rN   r   r   r   N)r   r@   rA   rB   r3   rD   rM   rV   r_   rg   rn   ru   r|   r   r   r   r   r   r   rC   r   r   r   r,   r,   ,   s    $0 0/ /1 12 22 21 12 21 13 33 30 00 05 5/ /r   r,   c                   n   \ rS rSrS r " S S5      r " S S5      r " S S5      r " S	 S
5      r " S S5      r	 " S S5      r
 " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S5      r " S S 5      r " S! S"5      r " S# S$5      rS%rg&)'GArrayk   c                 .    [         R                  " U5      $ r   )r   GArrayTr0   s     r   r3   GArray.__new__o   s    zz'""r   c                       \ rS rSrS rSrg)GArray.Boolr   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r:   r;   s    r   r3   GArray.Bool.__new__s       ::bggoo..r   r   Nr?   r   r   r   rD   r   r   rN   r   rD   c                       \ rS rSrS rSrg)
GArray.Intv   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   rJ   r;   s    r   r3   GArray.Int.__new__w       ::bggnn--r   r   Nr?   r   r   r   rM   r   v       	.r   rM   c                       \ rS rSrS rSrg)GArray.Int64z   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   rS   r;   s    r   r3   GArray.Int64.__new__{       ::bgg..//r   r   Nr?   r   r   r   rV   r   z   rE   r   rV   c                       \ rS rSrS rSrg)GArray.UInt64~   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r\   r;   s    r   r3   GArray.UInt64.__new__       ::bgg//00r   r   Nr?   r   r   r   r_   r   ~   rW   r   r_   c                       \ rS rSrS rSrg)GArray.Double   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   re   r;   s    r   r3   GArray.Double.__new__   r   r   r   Nr?   r   r   r   rg   r      rW   r   rg   c                       \ rS rSrS rSrg)GArray.Float   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   rl   r;   s    r   r3   GArray.Float.__new__   r   r   r   Nr?   r   r   r   rn   r      rE   r   rn   c                       \ rS rSrS rSrg)GArray.String   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   rs   r;   s    r   r3   GArray.String.__new__   r   r   r   Nr?   r   r   r   ru   r      rW   r   ru   c                       \ rS rSrS rSrg)GArray.Point   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   rz   r;   s    r   r3   GArray.Point.__new__   r   r   r   Nr?   r   r   r   r|   r      rE   r   r|   c                       \ rS rSrS rSrg)GArray.Point2f   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Point2f.__new__       ::bgg0011r   r   Nr?   r   r   r   r   r      r`   r   r   c                       \ rS rSrS rSrg)GArray.Point3f   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Point3f.__new__   r   r   r   Nr?   r   r   r   r   r      r`   r   r   c                       \ rS rSrS rSrg)GArray.Size   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Size.__new__   r   r   r   Nr?   r   r   r   r   r      rN   r   r   c                       \ rS rSrS rSrg)GArray.Rect   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Rect.__new__   r   r   r   Nr?   r   r   r   r   r      rN   r   r   c                       \ rS rSrS rSrg)GArray.Scalar   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   	CV_SCALARr;   s    r   r3   GArray.Scalar.__new__   r   r   r   Nr?   r   r   r   Scalarr      rW   r   r   c                       \ rS rSrS rSrg)
GArray.Mat   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   CV_MATr;   s    r   r3   GArray.Mat.__new__   r   r   r   Nr?   r   r   r   Matr      r   r   r   c                       \ rS rSrS rSrg)GArray.GMat   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   CV_GMATr;   s    r   r3   GArray.GMat.__new__   r   r   r   Nr?   r   r   r   GMatr      rN   r   r  c                       \ rS rSrS rSrg)GArray.Prim   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Prim.__new__   s    99RWW1122r   r   Nr?   r   r   r   r   r     r   r   r   c                       \ rS rSrS rSrg)
GArray.Any   c                 ^    [         R                  " [         R                  R                  5      $ r   )r   r   r9   r   r;   s    r   r3   GArray.Any.__new__   s    99RWW^^,,r   r   Nr?   r   r   r   r   r     s    	-r   r   r   N)r   r@   rA   rB   r3   rD   rM   rV   r_   rg   rn   ru   r|   r   r   r   r   r   r   r  r   r   rC   r   r   r   r   r   k   s    #/ /. .0 01 11 10 01 10 02 22 2/ // /1 1. ./ /3 3- -r   r   c                   ^ ^^^^^ 0 [         R                  R                  [         R                  R                  _[         R                  R
                  [         R                  R                  _[         R                  R                  [         R                  R                  _[         R                  R                  [         R                  R                  _[         R                  R                  [         R                  R                  _[         R                  R                  [         R                  R                  _[         R                  R                  [         R                  R                   _[         R                  R"                  [         R                  R$                  _[         R                  R&                  [         R                  R(                  _[         R                  R*                  [         R                  R,                  _[         R                  R.                  [         R                  R0                  _[         R                  R2                  [         R                  R4                  _[         R                  R6                  [         R                  R8                  _[         R                  R:                  [         R                  R<                  _[         R                  R>                  [         R                  R@                  _[         R                  RB                  [         R                  RD                  _[         R                  RF                  [         R                  RH                  _m0 [         RJ                  R.                  [         R                  R0                  _[         RJ                  R2                  [         R                  R4                  _[         RJ                  R                  [         R                  R                  _[         RJ                  R
                  [         R                  R                  _[         RJ                  R                  [         R                  R                  _[         RJ                  R                  [         R                  R                  _[         RJ                  R                  [         R                  R                  _[         RJ                  R                  [         R                  R                  _[         RJ                  R                  [         R                  R                   _[         RJ                  R"                  [         R                  R$                  _[         RJ                  R&                  [         R                  R(                  _[         RJ                  R*                  [         R                  R,                  _[         RJ                  R.                  [         R                  R0                  _[         RJ                  R2                  [         R                  R4                  _[         RJ                  RB                  [         R                  RD                  _[         RJ                  RF                  [         R                  RH                  _m0 [         R                  R                  S_[         R                  R                  S_[         R                  R                  S_[         R                  R                  S_[         R                  R                  S_[         R                  R                  S_[         R                  R                   S_[         R                  R$                  S_[         R                  R(                  S	_[         R                  R,                  S
_[         R                  R0                  S_[         R                  R4                  S_[         R                  R8                  S_[         R                  R<                  S_[         R                  R@                  S_[         R                  RD                  S_mUUUU UU4S jnU$ )Nzcv.gapi.CV_BOOLzcv.gapi.CV_INTzcv.gapi.CV_INT64zcv.gapi.CV_UINT64zcv.gapi.CV_DOUBLEzcv.gapi.CV_FLOATzcv.gapi.CV_STRINGzcv.gapi.CV_POINTzcv.gapi.CV_POINT2Fzcv.gapi.CV_POINT3Fzcv.gapi.CV_SIZEzcv.gapi.CV_RECTzcv.gapi.CV_SCALARzcv.gapi.CV_MATzcv.gapi.CV_GMATzcv.gapi.CV_DRAW_PRIMc                   >^  T(       d$  [        SR                  T R                  5      5      eT(       d$  [        SR                  T R                  5      5      e[        T5       H]  u  pU[        R
                  [        R                  /TQTQ;  d  M/  [        SR                  T R                  UR                  U5      5      e   U UUUUUU	4S jnTT l        [        U5      T l	        T $ )Nz,{} operation should have at least one input!z-{} operation should have at least one output!z.{} unsupported output type: {} in position: {}c                  P  > [        T
5      [        U 5      :w  a-  [        SR                  [        T
5      [        U 5      5      5      e[        [	        T
U 5      5       GH  u  nu  p#UT;   a  [        U[        R                  5      (       dR  [        SR                  TR                  U[        R                  R                  [        U5      R                  5      5      eUR                  5       TU   :w  a>  [        SR                  TR                  UTTU      TUR                  5          5      5      eM  UT	;   a  [        U[        R                  5      (       dR  [        SR                  TR                  U[        R                  R                  [        U5      R                  5      5      eUR                  5       T	U   :w  a>  [        SR                  TR                  UTT	U      TUR                  5          5      5      eGM  U[        U5      :w  d  GM  [        SR                  TR                  XR                  [        U5      R                  5      5      e   [        R                  R                  " TTR                  /U Q76 n/ n[        T5       H  u  pU[        R                  :X  a!  UR                  UR!                  5       5        M:  U[        R"                  :X  a!  UR                  UR%                  5       5        Mo  UT	;   a%  UR                  UR'                  T	U   5      5        M  UT;   a%  UR                  UR)                  TU   5      5        M  [        SR                  TR                  UR                  U5      5      e   [        U5      S:w  a  [+        U5      $ US   $ )	Nz:Invalid number of input elements!
Expected: {}, Actual: {}z9{} invalid type for argument {}.
Expected: {}, Actual: {}zA{} invalid GArrayT type for argument {}.
Expected: {}, Actual: {}zA{} invalid GOpaque type for argument {}.
Expected: {}, Actual: {}z?{} invalid input type for argument {}.
Expected: {}, Actual: {}zMIn {}: G-API operation can't produce the output with type: {} in position: {}   r   )len	Exceptionformat	enumeratezip
isinstancer   r   r   typer/   r9   __opoutMetar  appendgetGMatGScalar
getGScalar
getGOpaque	getGArraytuple)r   itar   
out_protosout_typer1   garray_typesgopaque_typesin_typesop_id	out_typestype2strs          r   on&op.<locals>.op_with_params.<locals>.on  s   8}D	) ]Hs4y9; ; 's8T':;	6A$%a44'(d!'a9L9LdSTgN^N^!_a a \!_4'(l!'a,q/9RT\]^]c]c]eTf!gi i 5 -'%a55'(d!'a9M9MtTUwO_O_!`b b ]1%55'(l!'a-PQBR9SU]^_^d^d^fUg!hj j 6
 DG|'(j!'aT!WEUEU!VX X+ <0 eS[[848BJ(3rww&%%bjjl3+%%bmmo6.%%bmmM(4K&LM-%%bll<3I&JK#$w#VCLL(2C2CQGI I  4 ),J1(<5$O*Q-Or   )
r  r  r   r  r   r  r  idstaticmethodr/  )
r1   r$  r%  r/  r)  r*  r+  r,  r-  r.  s
   `   r   op_with_paramsop.<locals>.op_with_params   s    JQQRUR^R^_``KRRSVS_S_`aai(DA"**L|LmLL"#S"F3<<Q?A A )
-	P -	P` b!
r   )&r   r   rD   r9   r:   rM   rJ   rV   rS   r_   r\   rg   re   rn   rl   ru   rs   r|   rz   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r   r   r   r   r,   )r,  r+  r-  r3  r)  r*  r.  s   ``` @@@r   r   r      sa   IINNrwwIIMMrww~~ IIOOrww// IIrww00	
 IIrww00 IIOOrww// IIrww00 IIOOrww// IIrww11 IIrww11 IINNrww IINNrww IIrww00 IIMMrww~~ IINNrww  IINNrww33!" IIMMrww~~#L(JJOOJJOO JJOO JJNN	
 JJ 0 0 JJ 1 1 JJ 1 1 JJ 0 0 JJ 1 1 JJ 0 0 JJ 2 2 JJ 2 2 JJOO JJOO JJOO 4 4  JJNN!M&
/
. 	0 	1	
 	1 	0 	1 	0 	2 	2 	/ 	/ 	1 	. 	/  	4!H(> >@ r   c                    ^  U 4S jnU$ )Nc                 L   > TR                   U l         TR                  U l        U $ r   )r1  r  )r1   op_clss    r   kernel_with_params"kernel.<locals>.kernel_with_params:  s    iinn
r   r   )r7  r8  s   ` r   r   r   8  s     r   )__all__r   r!   r   r   r   r    r#   r&   r(   r*   r,   r   r   r   gapi_wip_gst_GStreamerPipeliner9   wipGStreamerPipeliner   r   r   <module>r>     s  
 
  
*A A 
*+ + 
%  
%  
%  
*  
%</ </ </| 
%H- H- H-X}@ !# A A r   