Skip to content

Commit ac0eea0

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents fa0da05 + a21f77f commit ac0eea0

File tree

9 files changed

+17
-13
lines changed

9 files changed

+17
-13
lines changed

testdata/cv/qrcode/dataset_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
{ "image_name": "version_5_top.jpg", "x": [ 196, 424, 436, 187 ],
7171
"y": [ 140, 142, 374, 374 ],
7272
"info": "aQqdqecq%hre3?JXcDxx#PqLG_29G*R^&f?bD6C5qam+Y_MUGaSmS5&fh_Q&bCZz=8g4GB2+#7%^Tw&Wz&c3VT*h" },
73-
{ "image_name": "russian.jpg", "x": [ 155, 309, 519, 387 ], "y": [
74-
297, 137, 239, 450 ],
73+
{ "image_name": "russian.jpg", "x": [ 228, 489, 503, 221 ], "y": [
74+
142, 137, 410, 408 ],
7575
"info": "Съешь же ещё этих мягких французких булок да выпей чаю." },
7676
{ "image_name": "kanji.jpg", "x": [ 73, 240, 300, 116 ], "y": [
7777
226, 153, 386, 430 ],

testdata/cv/qrcode/russian.jpg

-1.08 KB
Loading

testdata/dnn/download_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def getMB(r):
3737
def verify(self):
3838
if not self.sha:
3939
return False
40-
print(' expect {}'.format(m.sha))
40+
print(' expect {}'.format(self.sha))
4141
sha = hashlib.sha1()
4242
with open(self.filename, 'rb') as f:
4343
while True:
176 Bytes
Binary file not shown.
608 Bytes
Binary file not shown.

testdata/dnn/onnx/generate_onnx_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,7 @@ def forward(self, x):
218218
input = Variable(torch.randn(2, 3))
219219
model = Transpose()
220220
save_data_and_model("transpose", input, model)
221+
222+
input = Variable(torch.randn(1, 2, 3, 4))
223+
pad = nn.ZeroPad2d((4,3, 2,1)) # left,right, top,bottom
224+
save_data_and_model("padding", input, pad)

testdata/dnn/onnx/models/padding.onnx

177 Bytes
Binary file not shown.
846 Bytes
Binary file not shown.

testdata/perf/objdetect.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@
644644
<cols>4</cols>
645645
<dt>"2i"</dt>
646646
<data>
647-
155 297 309 137 519 239 387 450</data></val></corners></Perf_Objdetect_QRCode--detect---russian-jpg->
647+
228 142 489 137 503 410 221 408</data></val></corners></Perf_Objdetect_QRCode--detect---russian-jpg->
648648
<Perf_Objdetect_QRCode--detect---kanji-jpg->
649649
<corners>
650650
<kind>196608</kind>
@@ -1006,13 +1006,13 @@
10061006
<y>0</y>
10071007
<val>46.</val></last>
10081008
<rng1>
1009-
<x>82</x>
1009+
<x>38</x>
10101010
<y>0</y>
10111011
<val>208.</val></rng1>
10121012
<rng2>
1013-
<x>25</x>
1013+
<x>10</x>
10141014
<y>0</y>
1015-
<val>209.</val></rng2></decoded_info_uint8_t>
1015+
<val>32.</val></rng2></decoded_info_uint8_t>
10161016
<straight_barcode>
10171017
<kind>65536</kind>
10181018
<type>5</type>
@@ -1023,13 +1023,13 @@
10231023
<y>36</y>
10241024
<val>0.</val></last>
10251025
<rng1>
1026-
<x>30</x>
1027-
<y>9</y>
1028-
<val>255.</val></rng1>
1026+
<x>19</x>
1027+
<y>26</y>
1028+
<val>0.</val></rng1>
10291029
<rng2>
1030-
<x>0</x>
1031-
<y>12</y>
1032-
<val>0.</val></rng2></straight_barcode></Perf_Objdetect_QRCode--decode---russian-jpg->
1030+
<x>26</x>
1031+
<y>13</y>
1032+
<val>255.</val></rng2></straight_barcode></Perf_Objdetect_QRCode--decode---russian-jpg->
10331033
<Perf_Objdetect_QRCode--decode---kanji-jpg->
10341034
<decoded_info_uint8_t>
10351035
<kind>196608</kind>

0 commit comments

Comments
 (0)