Skip to content

Instantly share code, notes, and snippets.

Created July 25, 2009 05:08
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/154705 to your computer and use it in GitHub Desktop.
HaarCascade file for QR-Code Detecting.
<?xml version="1.0"?>
<opencv_storage>
<qrcode type_id="opencv-haar-classifier">
<size>
48 48</size>
<stages>
<_>
<!-- stage 0 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
20 21 6 6 -1.</_>
<_>
22 23 2 2 9.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0103449104353786</threshold>
<left_val>-0.9548482894897461</left_val>
<right_val>0.9073511958122253</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
23 21 2 4 -1.</_>
<_>
23 22 2 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.1126409517601132e-003</threshold>
<left_val>-0.9673743844032288</left_val>
<right_val>0.8168128728866577</right_val></_></_></trees>
<stage_threshold>-0.1380355060100555</stage_threshold>
<parent>-1</parent>
<next>-1</next></_>
<_>
<!-- stage 1 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 24 4 2 -1.</_>
<_>
24 24 2 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-1.5609200345352292e-003</threshold>
<left_val>0.8188925981521606</left_val>
<right_val>-0.9950048923492432</right_val></_></_></trees>
<stage_threshold>0.8188925981521606</stage_threshold>
<parent>0</parent>
<next>-1</next></_>
<_>
<!-- stage 2 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
0 3 27 45 -1.</_>
<_>
9 18 9 15 9.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.1732340008020401</threshold>
<left_val>0.6453695893287659</left_val>
<right_val>-0.9692143797874451</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
23 21 2 4 -1.</_>
<_>
23 22 2 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.2084780028089881e-003</threshold>
<left_val>-0.9479939937591553</left_val>
<right_val>0.5378274917602539</right_val></_></_></trees>
<stage_threshold>-0.4313868880271912</stage_threshold>
<parent>1</parent>
<next>-1</next></_>
<_>
<!-- stage 3 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
16 19 6 8 -1.</_>
<_>
18 19 2 8 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>3.5421359352767467e-003</threshold>
<left_val>-0.8046842217445374</left_val>
<right_val>0.6169096231460571</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
27 16 5 27 -1.</_>
<_>
18 25 5 9 3.</_></rects>
<tilted>1</tilted></feature>
<threshold>-3.2129189930856228e-003</threshold>
<left_val>0.2908005118370056</left_val>
<right_val>-0.9236667752265930</right_val></_></_>
<_>
<!-- tree 2 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
20 26 4 1 -1.</_>
<_>
21 26 2 1 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.0744900393765420e-004</threshold>
<left_val>0.4961540102958679</left_val>
<right_val>-0.7403460144996643</right_val></_></_>
<_>
<!-- tree 3 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
10 9 38 30 -1.</_>
<_>
10 9 19 30 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0524423904716969</threshold>
<left_val>0.0977742299437523</left_val>
<right_val>-0.9785854816436768</right_val></_></_>
<_>
<!-- tree 4 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
0 7 40 31 -1.</_>
<_>
20 7 20 31 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.0256560090929270</threshold>
<left_val>0.4551945030689240</left_val>
<right_val>-0.9134148955345154</right_val></_></_></trees>
<stage_threshold>-0.7012609243392944</stage_threshold>
<parent>2</parent>
<next>-1</next></_>
<_>
<!-- stage 4 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
0 5 8 40 -1.</_>
<_>
4 5 4 40 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-6.4354860223829746e-003</threshold>
<left_val>0.4868046939373016</left_val>
<right_val>-0.9083638787269592</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
23 23 2 3 -1.</_>
<_>
23 24 2 1 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>-4.6242540702223778e-004</threshold>
<left_val>0.3587448000907898</left_val>
<right_val>-0.9239354729652405</right_val></_></_>
<_>
<!-- tree 2 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
5 18 21 10 -1.</_>
<_>
12 18 7 10 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>-6.9029228761792183e-003</threshold>
<left_val>0.3355068862438202</left_val>
<right_val>-0.9700623154640198</right_val></_></_>
<_>
<!-- tree 3 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
26 19 3 9 -1.</_>
<_>
27 22 1 3 9.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.2677010856568813e-003</threshold>
<left_val>-0.3845593929290772</left_val>
<right_val>-0.0121846199035645</right_val></_></_>
<_>
<!-- tree 4 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
20 22 6 5 -1.</_>
<_>
23 22 3 5 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-1.8595639849081635e-003</threshold>
<left_val>-0.9357479810714722</left_val>
<right_val>0.3688373863697052</right_val></_></_></trees>
<stage_threshold>-1.1401400566101074</stage_threshold>
<parent>3</parent>
<next>-1</next></_>
<_>
<!-- stage 5 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 24 2 1 -1.</_>
<_>
23 24 1 1 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-3.6719060153700411e-004</threshold>
<left_val>0.6219149231910706</left_val>
<right_val>-0.7483260035514832</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
19 25 12 6 -1.</_>
<_>
19 25 6 6 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-8.7790039833635092e-004</threshold>
<left_val>-0.6859695911407471</left_val>
<right_val>0.1641228049993515</right_val></_></_>
<_>
<!-- tree 2 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 23 1 4 -1.</_>
<_>
22 25 1 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-4.7212341451086104e-004</threshold>
<left_val>0.4042682051658630</left_val>
<right_val>-0.8443977832794190</right_val></_></_>
<_>
<!-- tree 3 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
24 11 8 12 -1.</_>
<_>
24 11 4 12 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>6.1808349564671516e-003</threshold>
<left_val>0.1661528944969177</left_val>
<right_val>-0.9191377758979797</right_val></_></_>
<_>
<!-- tree 4 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
24 11 12 8 -1.</_>
<_>
24 11 12 4 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>4.2478227987885475e-003</threshold>
<left_val>-0.9514471292495728</left_val>
<right_val>0.3903788924217224</right_val></_></_></trees>
<stage_threshold>-0.8720691800117493</stage_threshold>
<parent>4</parent>
<next>-1</next></_>
<_>
<!-- stage 6 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 18 24 6 -1.</_>
<_>
28 24 12 6 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>-0.0111827095970511</threshold>
<left_val>0.4081555008888245</left_val>
<right_val>-0.9053934216499329</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
26 19 3 2 -1.</_>
<_>
26 19 3 1 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>-1.2287040008231997e-003</threshold>
<left_val>0.5259883999824524</left_val>
<right_val>-0.3725750148296356</right_val></_></_>
<_>
<!-- tree 2 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 19 2 3 -1.</_>
<_>
22 19 1 3 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>2.5861008907668293e-004</threshold>
<left_val>-0.8405091762542725</left_val>
<right_val>0.5130481123924255</right_val></_></_>
<_>
<!-- tree 3 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
22 0 26 42 -1.</_>
<_>
22 14 26 14 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0572983510792255</threshold>
<left_val>0.0875497236847878</left_val>
<right_val>-0.9601622223854065</right_val></_></_>
<_>
<!-- tree 4 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
20 22 4 4 -1.</_>
<_>
19 23 4 2 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>2.1823849529027939e-003</threshold>
<left_val>-0.5852091908454895</left_val>
<right_val>0.5370100140571594</right_val></_></_>
<_>
<!-- tree 5 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
27 0 20 42 -1.</_>
<_>
27 14 20 14 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0583424381911755</threshold>
<left_val>0.0370553508400917</left_val>
<right_val>-0.9553520083427429</right_val></_></_>
<_>
<!-- tree 6 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
24 11 18 8 -1.</_>
<_>
30 17 6 8 3.</_></rects>
<tilted>1</tilted></feature>
<threshold>-0.0156938508152962</threshold>
<left_val>-0.9137405157089233</left_val>
<right_val>0.3280842900276184</right_val></_></_></trees>
<stage_threshold>-1.0170459747314453</stage_threshold>
<parent>5</parent>
<next>-1</next></_>
<_>
<!-- stage 7 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
24 23 3 1 -1.</_>
<_>
25 24 1 1 3.</_></rects>
<tilted>1</tilted></feature>
<threshold>-1.2283700052648783e-003</threshold>
<left_val>0.3682096898555756</left_val>
<right_val>-0.9386060833930969</right_val></_></_>
<_>
<!-- tree 1 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
19 8 25 40 -1.</_>
<_>
19 18 25 20 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.0102985296398401</threshold>
<left_val>0.1055373996496201</left_val>
<right_val>-0.9423226714134216</right_val></_></_>
<_>
<!-- tree 2 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
12 19 9 5 -1.</_>
<_>
15 19 3 5 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.8969279956072569e-003</threshold>
<left_val>0.3674179017543793</left_val>
<right_val>-0.8184422254562378</right_val></_></_>
<_>
<!-- tree 3 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>
24 2 4 24 -1.</_>
<_>
18 8 4 12 2.</_></rects>
<tilted>1</tilted></feature>
<threshold>-0.0270113591104746</threshold>
<left_val>-0.8684492707252502</left_val>
<right_val>-0.0258035492151976</right_val></_></_></trees>
<stage_threshold>-0.4914543926715851</stage_threshold>
<parent>6</parent>
<next>-1</next></_></stages></qrcode>
</opencv_storage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment