Files
mixly3/boards/default/micropython_k210_mixgoai/examples/p1UyHWUACext.mix
2024-07-21 09:30:11 +08:00

1 line
9.8 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="pI9D?pvzL$~D+5yOjiDV" x="-251" y="-174"><field name="VALUE">Imge 颜色识别_识别采集图片中间框区域的颜色值</field><next><block type="camera_init" id="U|HEQHS@Rf:m6UM5w`nv" inline="true"><value name="key1"><shadow type="mode" id="#;AEm3PzFq$s?4g-Z?vs"><field name="flag">sensor.YUV422</field></shadow></value><value name="key2"><shadow type="size" id="w~8TCp#JZC)GbKE6Db5G"><field name="flag">sensor.B240X240</field></shadow></value><value name="key3"><shadow type="on_off" id="(i~U$717Dbj7X(:{s2P%"><field name="flag">1</field></shadow></value><next><block type="lcd_init" id="r1PdFnG}Li~0tl}E~ksg" inline="true"><value name="freq"><shadow type="math_number" id="3*UizAFnp=^rN}L-Tcw+"><field name="NUM">15000000</field></shadow></value><value name="color"><shadow type="math_number" id="b7ivH;G*xsjY*i9{,=~R"><field name="NUM">0x0000</field></shadow></value><next><block type="variables_set" id="r_e[f/Hqy#v`$S$pMqRL"><field name="VAR">mylist</field><value name="VALUE"><block type="list_many_input" id="=R7*YV^33I.wdI#p[9P."><field name="CONTENT">0,0,0</field></block></value><next><block type="controls_whileUntil" id="kK)u,ZvP575Z8udsjScg"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="4(0Q||LEF7a,2GSA/Y"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="=|!oWoXuMF%Hq^}mqh[i"><field name="VAR">img</field><value name="VALUE"><block type="camera_snapshot" id="hhgzuDeC[AE8C!s#CgC+"></block></value><next><block type="variables_set" id="!dByRWQ})S;r;Z4BYx;5"><field name="VAR">img</field><value name="VALUE"><block type="image_draw_rectangle" id="a91@M``yoTVlF*@JYwK)" inline="true"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="-o~z%AM,KuJ.S7BdPtZ|"><field name="VAR">image</field></shadow><block type="variables_get" id="UN(WSNX1?$ru@uuD*C8Y"><field name="VAR">img</field></block></value><value name="LIST"><shadow type="list_many_input" id="p3|)n]brmcSiWK!klh0f"><field name="CONTENT">95,95,50,50</field></shadow></value><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="rvKS1)=2p|1WFCaniaOa"><field name="NUM">0xFFFF</field></shadow><block type="image_lab_to_rgb" id="XIJ(brvn!(,I_hgj_%q8"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input" id="^p`hax(2f_]0gf.W]Toc"><field name="CONTENT">0,0,0</field></shadow><block type="variables_get" id=";Zwr0M^Lg)kFUt1M#p:D"><field name="VAR">mylist</field></block></value></block></value><value name="thi"><shadow type="math_number" id="n/5|5f@fN[25G?k5ojel"><field name="NUM">2</field></shadow></value><value name="fil"><shadow type="true_false" id="0p4Pkx~:xKX%`V:YMHpX"><field name="flag">0</field></shadow></value></block></value><next><block type="variables_set" id="$j,V%T*`%gC4#g9QG{Hb"><field name="VAR">color</field><value name="VALUE"><block type="image_get_histogram" id="|hy)aLLXCg[Km]ex[jgA" inline="true"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="CBnju_k#VFqyP*=^i6Yi"><field name="VAR">image</field></shadow><block type="variables_get" id="+A19]7`:-GJ#JEZe#,dX"><field name="VAR">img</field></block></value><value name="roi"><shadow type="list_many_input" id="nqzKbKAilOGy2^G$VOVd"><field name="CONTENT">95,95,50,50</field></shadow></value></block></value><next><block type="lists_set_index" id="XBDTAn_p*es=[=+h`#l2"><value name="LIST"><shadow type="variables_get" id="YAf0guxwMG_:Nw^O?QR4"><field name="VAR">mylist</field></shadow></value><value name="AT"><shadow type="math_number" id="=--H|q4IM_!_El].*9Y-"><field name="NUM">0</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3JDiS@$B19(3{l8,q=kQ"><field name="NUM">0</field></shadow><block type="image_percentile" id="HqY}K;{;=m5W,7(ZYCwi"><field name="key">l_value</field><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="X0r$h(R?bZP;7UC2-y9{"><field name="VAR">Histogram</field></shadow><block type="variables_get" id="l+O8jIB7)tfgj3F/LfLA"><field name="VAR">color</field></block></value><value name="percentile"><shadow type="math_number" id="Q.5QkrhV!aJdN{*cLtT="><field name="NUM">0.5</field></shadow></value></block></value><next><block type="lists_set_index" id="BS~COLVkqcLd0iB;(KrN"><value name="LIST"><shadow type="variables_get" id="h2liQG~7*Du}6vNLP3Kn"><field name="VAR">mylist</field></shadow></value><value name="AT"><shadow type="math_number" id="2g|j83@}!3K-;XOSR#-r"><field name="NUM">1</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3JDiS@$B19(3{l8,q=kQ"><field name="NUM">0</field></shadow><block type="image_percentile" id="hI8bW`-I:+3)EN`],X88"><field name="key">a_value</field><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="X0r$h(R?bZP;7UC2-y9{"><field name="VAR">Histogram</field></shadow><block type="variables_get" id="Q9H!_vO|l!{9cAhi)]ZM"><field name="VAR">color</field></block></value><value name="percentile"><shadow type="math_number" id="fMYx9#Gi7D6G,2sxao4["><field name="NUM">0.5</field></shadow></value></block></value><next><block type="lists_set_index" id="aBbw`GP`xk}vsE`hVOur"><value name="LIST"><shadow type="variables_get" id="xhtwxNmGu[F,v7(FTQ[+"><field name="VAR">mylist</field></shadow></value><value name="AT"><shadow type="math_number" id="CYq+Jz+`4)~%S]];,%~C"><field name="NUM">2</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3JDiS@$B19(3{l8,q=kQ"><field name="NUM">0</field></shadow><block type="image_percentile" id="87@5Oi@;k5%4~a`jp6i}"><field name="key">b_value</field><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="X0r$h(R?bZP;7UC2-y9{"><field name="VAR">Histogram</field></shadow><block type="variables_get" id="$pd8z4py/FVE9P!qxSgP"><field name="VAR">color</field></block></value><value name="percentile"><shadow type="math_number" id="SWS7K4sKlkA_rPE4,,@#"><field name="NUM">0.5</field></shadow></value></block></value><next><block type="variables_set" id="`-Xy%^pcwaPHa3fJlG1?"><field name="VAR">img</field><value name="VALUE"><block type="image_draw_string" id="%^B~11$@fGmJ~e:ABBGp" inline="true"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="extEFP!g+QXL$n:6B*[S"><field name="VAR">image</field></shadow><block type="variables_get" id="34A*pX}g.n$S/$1FJa$@"><field name="VAR">img</field></block></value><value name="x0"><shadow type="math_number" id="FR~vu..0vNnI%Gq%J2q`"><field name="NUM">0</field></shadow></value><value name="y0"><shadow type="math_number" id="RGLx`:F(|E%-A54qy-iS"><field name="NUM">0</field></shadow></value><value name="tex"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="cL(GV6}1lh0=32*1YRv="><field name="TEXT">MixPY</field></shadow><block type="variables_change" id="%N}@%InB-zGDd`4nxD]R"><field name="OP">str</field><value name="MYVALUE"><block type="image_lab_to_rgb" id=",:$DvtB*ug:}{=dwmjX;"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input" id="^p`hax(2f_]0gf.W]Toc"><field name="CONTENT">0,0,0</field></shadow><block type="variables_get" id="+T5a,Bs-XbB;JLD?@}#E"><field name="VAR">mylist</field></block></value></block></value></block></value><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Q_~T-gNr$^Kqk_,{R*Hj"><field name="NUM">0x0FF0</field></shadow><block type="image_lab_to_rgb" id="o`RQ6b_=K4qD%zzC5TGm"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input" id="^p`hax(2f_]0gf.W]Toc"><field name="CONTENT">0,0,0</field></shadow><block type="variables_get" id="E;n,+S%#UUoxxN/Qj8ng"><field name="VAR">mylist</field></block></value></block></value><value name="scale"><shadow type="math_number" id="XEH_0b?9vQEWyjz~8S63"><field name="NUM">3</field></shadow></value></block></value><next><block type="variables_set" id=":.g3;5);}w0MxLU$c)=;"><field name="VAR">img</field><value name="VALUE"><block type="image_draw_rectangle" id="302=c;@u%kfQD?):44p|" inline="true"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="-o~z%AM,KuJ.S7BdPtZ|"><field name="VAR">image</field></shadow><block type="variables_get" id=",t3-DO8@)WYhn*}Y5iQv"><field name="VAR">img</field></block></value><value name="LIST"><shadow type="list_many_input" id="!b+avE/7P`|U1GS5PK!e"><field name="CONTENT">190,190,50,50</field></shadow></value><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="rvKS1)=2p|1WFCaniaOa"><field name="NUM">0xFFFF</field></shadow><block type="image_lab_to_rgb" id="ZUwNunQO3jOGAGl2/+k^"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input" id="^p`hax(2f_]0gf.W]Toc"><field name="CONTENT">0,0,0</field></shadow><block type="variables_get" id="Mma1t*0yeMIB0[x(csuv"><field name="VAR">mylist</field></block></value></block></value><value name="thi"><shadow type="math_number" id="s#]I#jd1n2$%Onm[uptW"><field name="NUM">1</field></shadow></value><value name="fil"><shadow type="true_false" id="=;qd%e^(^:k6X;}stw}w"><field name="flag">1</field></shadow></value></block></value><next><block type="lcd_display" id="gNgdwybw8#5vLdi;s0%$"><value name="img"><shadow xmlns="http://www.w3.org/1999/xhtml" type="factory_block_return" id="+8gyk47|j0URjSHP[RRj"><field name="VALUE">image</field></shadow><block type="variables_get" id="lVRh#a/UpRW7:r$,#i*-"><field name="VAR">img</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></xml>