image_id
stringlengths
20
23
image
imagewidth (px)
452
1.28k
objects
sequence
source
stringclasses
2 values
snapshot_1571887242.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 196, 558, 66, 69 ], [ 685, 554, 78, 67 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1571884207.jpg
{ "object_id": [ 0 ], "bbox": [ [ 145, 637, 93, 93 ] ], "category": [ 0 ] }
游戏截图
snapshot_1571884792.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 332, 582, 71, 62 ], [ 616, 583, 73, 60 ] ], "category": [ 2, 3 ] }
游戏截图
snapshot_1571884983.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 409, 569, 40, 50 ], [ 700, 572, 52, 40 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1571885516.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 172, 524, 69, 73 ], [ 625, 522, 95, 75 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1571885854.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 294, 587, 56, 46 ], [ 748, 583, 51, 54 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1571886020.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 405, 582, 46, 34 ], [ 683, 577, 38, 43 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1571886578.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 254, 526, 71, 60 ], [ 255, 643, 68, 70 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1571886595.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 316, 651, 44, 45 ], [ 827, 653, 46, 42 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1571886775.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 231, 536, 56, 46 ], [ 852, 536, 43, 49 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1571886805.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 297, 573, 62, 48 ], [ 756, 567, 49, 58 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1571887035.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 373, 543, 56, 47 ], [ 733, 542, 42, 50 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1571887143.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 468, 318, 51, 60 ], [ 657, 320, 72, 56 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1571887242.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 197, 556, 66, 71 ], [ 684, 555, 80, 65 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572330104.jpg
{ "object_id": [ 0 ], "bbox": [ [ 802, 526, 33, 35 ] ], "category": [ 2 ] }
游戏截图
snapshot_1572422586.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 155, 463, 103, 95 ], [ 170, 626, 86, 92 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572422914.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 242, 593, 66, 62 ], [ 762, 592, 61, 62 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572424314.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 100, 1040, 40, 50 ], [ 417, 1040, 60, 50 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572424919.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 262, 563, 69, 54 ], [ 819, 564, 46, 50 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572425358.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 348, 618, 53, 41 ], [ 707, 618, 37, 43 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572425560.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 327, 534, 65, 56 ], [ 682, 535, 56, 63 ] ], "category": [ 5, 0 ] }
游戏截图
snapshot_1572426148.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 323, 545, 58, 46 ], [ 710, 542, 49, 51 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572426537.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 184, 493, 84, 67 ], [ 719, 485, 73, 78 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1572426810.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 463, 228, 69, 70 ], [ 457, 422, 85, 70 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572427350.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 427, 462, 44, 36 ], [ 700, 463, 39, 37 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572427571.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 542, 597, 55, 43 ], [ 895, 594, 46, 49 ] ], "category": [ 5, 6 ] }
游戏截图
snapshot_1572427772.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 246, 569, 59, 49 ], [ 804, 566, 57, 54 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1572427975.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 335, 582, 62, 62 ], [ 615, 582, 72, 60 ] ], "category": [ 2, 3 ] }
游戏截图
snapshot_1572428454.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 218, 523, 71, 75 ], [ 675, 522, 91, 75 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572428609.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 341, 330, 56, 57 ], [ 701, 334, 63, 52 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572429260.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 426, 583, 54, 46 ], [ 683, 583, 43, 48 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572483102.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 344, 520, 52, 57 ], [ 743, 521, 72, 57 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572483504.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 262, 595, 62, 51 ], [ 820, 594, 51, 54 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1572483700.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 406, 1063, 56, 50 ], [ 95, 1063, 45, 50 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572484437.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 342, 512, 48, 53 ], [ 654, 511, 59, 51 ] ], "category": [ 2, 4 ] }
游戏截图
snapshot_1572484867.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 264, 547, 47, 55 ], [ 726, 551, 59, 45 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572485141.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 338, 512, 54, 53 ], [ 653, 513, 60, 49 ] ], "category": [ 2, 4 ] }
游戏截图
snapshot_1572486003.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 219, 520, 68, 77 ], [ 673, 522, 92, 76 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572486285.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 381, 554, 49, 35 ], [ 705, 553, 35, 35 ] ], "category": [ 2, 0 ] }
游戏截图
snapshot_1572488378.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 426, 585, 50, 43 ], [ 684, 584, 41, 43 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572489017.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 687, 310, 63, 53 ], [ 688, 410, 62, 80 ] ], "category": [ 4, 6 ] }
游戏截图
snapshot_1572490894.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 311, 612, 61, 57 ], [ 705, 610, 51, 61 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572492362.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 313, 554, 57, 60 ], [ 758, 552, 71, 62 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572492569.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 125, 1050, 50, 43 ], [ 410, 1050, 35, 43 ] ], "category": [ 2, 0 ] }
游戏截图
snapshot_1572493157.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 181, 579, 40, 40 ], [ 175, 715, 48, 40 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572503782.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 324, 542, 68, 56 ], [ 745, 535, 50, 64 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572504803.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 337, 586, 59, 60 ], [ 613, 581, 77, 63 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572509515.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 170, 523, 69, 75 ], [ 624, 523, 94, 76 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572509715.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 381, 243, 78, 84 ], [ 374, 411, 87, 73 ] ], "category": [ 2, 3 ] }
游戏截图
snapshot_1572509875.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 328, 428, 70, 72 ], [ 615, 434, 77, 64 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572510101.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 310, 353, 85, 92 ], [ 623, 353, 106, 98 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572510944.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 324, 591, 56, 47 ], [ 719, 589, 44, 50 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572511526.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 244, 567, 62, 53 ], [ 809, 562, 54, 60 ] ], "category": [ 2, 0 ] }
游戏截图
snapshot_1572513078.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 494, 383, 76, 83 ], [ 699, 385, 99, 81 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572513592.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 490, 386, 81, 82 ], [ 698, 384, 98, 80 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572513807.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 375, 559, 45, 36 ], [ 712, 557, 33, 38 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572513904.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 397, 543, 38, 44 ], [ 726, 544, 49, 40 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572514004.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 347, 591, 52, 40 ], [ 771, 590, 38, 44 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572514110.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 328, 563, 68, 66 ], [ 619, 566, 78, 63 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572514220.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 337, 537, 45, 46 ], [ 786, 538, 52, 43 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572514640.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 336, 567, 42, 35 ], [ 767, 565, 34, 40 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572514741.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 100, 1110, 45, 50 ], [ 430, 1115, 38, 45 ] ], "category": [ 1, 2 ] }
游戏截图
snapshot_1572515563.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 72, 868, 63, 74 ], [ 422, 868, 78, 74 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572516066.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 377, 335, 43, 48 ], [ 642, 335, 53, 45 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572516520.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 379, 569, 63, 49 ], [ 679, 566, 47, 53 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1572570343.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 376, 337, 49, 47 ], [ 640, 335, 54, 50 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572570547.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 429, 308, 132, 105 ], [ 628, 299, 117, 127 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572571179.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 380, 570, 58, 48 ], [ 715, 574, 38, 43 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572571325.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 332, 581, 67, 65 ], [ 607, 577, 84, 69 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572573415.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 400, 591, 62, 50 ], [ 691, 586, 55, 59 ] ], "category": [ 1, 0 ] }
游戏截图
snapshot_1572573918.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 429, 567, 46, 49 ], [ 703, 567, 49, 41 ] ], "category": [ 0, 4 ] }
游戏截图
snapshot_1572574215.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 129, 991, 52, 51 ], [ 406, 992, 39, 47 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572575051.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 376, 454, 61, 45 ], [ 702, 453, 45, 52 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572575388.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 212, 546, 51, 52 ], [ 785, 544, 65, 48 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572575496.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 265, 319, 69, 80 ], [ 635, 324, 94, 73 ] ], "category": [ 0, 1 ] }
游戏截图
snapshot_1572575973.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 368, 550, 53, 46 ], [ 692, 550, 49, 45 ] ], "category": [ 4, 0 ] }
游戏截图
snapshot_1572575682.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 382, 241, 77, 79 ], [ 372, 404, 93, 69 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572576816.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 273, 542, 36, 49 ], [ 266, 636, 48, 59 ] ], "category": [ 2, 1 ] }
游戏截图
snapshot_1572577524.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 298, 587, 81, 57 ], [ 708, 581, 66, 67 ] ], "category": [ 1, 0 ] }
游戏截图
baidu_1572571325.jpg
{ "object_id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "bbox": [ [ 0, 0, 45, 47 ], [ 69, 0, 48, 51 ], [ 138, 0, 47, 50 ], [ 209, 0, 52, 51 ], [ 284, 0, 53, 49 ], [ 356, 0, 55, 50 ], [ 427, 0, 55, 52 ], [ 281, 161, 68, 51 ], [ 354, 158, 59, 55 ], [ 429, 160, 61, 54 ], [ 497, 158, 67, 57 ], [ 587, 164, 43, 42 ] ], "category": [ 0, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1 ] }
百度图片
baidu_1572573415.jpg
{ "object_id": [ 0 ], "bbox": [ [ 226, 161, 171, 176 ] ], "category": [ 6 ] }
百度图片
baidu_1572573416.jpg
{ "object_id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "bbox": [ [ 29, 16, 59, 69 ], [ 253, 10, 60, 60 ], [ 410, 13, 68, 76 ], [ 24, 116, 65, 74 ], [ 253, 113, 62, 60 ], [ 407, 116, 70, 75 ], [ 25, 220, 63, 72 ], [ 253, 213, 60, 62 ], [ 411, 218, 64, 72 ], [ 27, 322, 62, 70 ], [ 256, 318, 54, 57 ], [ 410, 322, 65, 73 ] ], "category": [ 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6 ] }
百度图片
baidu_1572573417.jpg
{ "object_id": [ 0 ], "bbox": [ [ 131, 97, 235, 255 ] ], "category": [ 6 ] }
百度图片
baidu_1572573418.jpg
{ "object_id": [ 0 ], "bbox": [ [ 88, 68, 420, 460 ] ], "category": [ 6 ] }
百度图片
baidu_1572573419.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 43, 210, 199, 217 ], [ 102, 611, 202, 227 ] ], "category": [ 6, 6 ] }
百度图片
baidu_1572573420.jpg
{ "object_id": [ 0 ], "bbox": [ [ 230, 309, 544, 428 ] ], "category": [ 1 ] }
百度图片
baidu_1572575682.jpg
{ "object_id": [ 0, 1, 2, 3 ], "bbox": [ [ 25, 42, 320, 260 ], [ 341, 50, 280, 247 ], [ 45, 377, 234, 203 ], [ 354, 374, 256, 207 ] ], "category": [ 4, 4, 1, 1 ] }
百度图片
baidu_1572575683.jpg
{ "object_id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "bbox": [ [ 36, 102, 132, 117 ], [ 107, 290, 68, 67 ], [ 120, 399, 54, 47 ], [ 140, 482, 35, 33 ], [ 147, 545, 28, 26 ], [ 150, 585, 32, 37 ], [ 330, 106, 126, 113 ], [ 394, 290, 72, 62 ], [ 413, 399, 53, 48 ], [ 432, 477, 36, 39 ], [ 433, 540, 41, 39 ], [ 442, 585, 31, 33 ] ], "category": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] }
百度图片
baidu_1572575685.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 65, 67, 55, 58 ], [ 66, 255, 57, 57 ] ], "category": [ 2, 1 ] }
百度图片
baidu_1572575686.jpg
{ "object_id": [ 0 ], "bbox": [ [ 155, 93, 182, 146 ] ], "category": [ 1 ] }
百度图片
baidu_1572575687.jpg
{ "object_id": [ 0, 1 ], "bbox": [ [ 26, 198, 108, 103 ], [ 189, 198, 125, 101 ] ], "category": [ 0, 4 ] }
百度图片
baidu_1572575688.jpg
{ "object_id": [ 0, 1, 2 ], "bbox": [ [ 415, 7, 127, 119 ], [ 370, 322, 242, 219 ], [ 373, 761, 239, 196 ] ], "category": [ 1, 1, 1 ] }
百度图片
baidu_1572575689.jpg
{ "object_id": [ 0, 1, 2 ], "bbox": [ [ 74, 130, 100, 84 ], [ 75, 390, 478, 417 ], [ 585, 746, 105, 101 ] ], "category": [ 1, 1, 1 ] }
百度图片
baidu_1572575690.jpg
{ "object_id": [ 0 ], "bbox": [ [ 361, 74, 95, 87 ] ], "category": [ 1 ] }
百度图片
baidu_1572575691.jpg
{ "object_id": [ 0, 1, 2, 3, 4, 5 ], "bbox": [ [ 75, 33, 225, 182 ], [ 30, 186, 253, 225 ], [ 296, 244, 138, 108 ], [ 445, 235, 205, 163 ], [ 369, 413, 274, 206 ], [ 39, 426, 184, 150 ] ], "category": [ 4, 4, 4, 4, 1, 1 ] }
百度图片

WeChat 或 QQ 图标检测.

任务: 从图像中检测出 WeChat 或 QQ 图标的位置.

方法: 基于 OpenCV 库, 通过 SIFT 或 SURF 图像特征作检测.

由于 SURF 和 SIFT 算法有专利限制, 
其安装环境是: 
python==3.6.5
opencv-contrib-python==3.4.2.16

由于 huggingface 的 space 中的 python 为 3.10 版本, 已无法安装此 opencv 库. 

你也可以在这里找到相关代码, 但这个库已经不再维护了. 

https://github.com/tianxing1994/OpenCV/
dir: 练习实例 -> SIFT_SURF 图像特征作目标检测(在图片中检测出 QQ 图标的位置)

因此将实现方法记录如下: 

实现步骤:

(1)采用 opencv 库的 SIFT 或 SURF 图像特征 cv.xfeatures2d.SIFT_create() 对目标区域生成特征点向量.

(2)为减少特征点数量, 对所有的特征点向量做聚类, 将聚类中心作为特征点, 得到 template_descriptors.

(3)计算目标图像中的所有 SIFT 或 SURF 图像特征点. 得到 scene_descriptors.

(4) 采用 flann.knnMatch 方法进行特征点匹配, (如果最近匹配距离比第二匹配距离的 0.7 倍还要小, 则认为这个点是 good_match, 即认为好的特征点具有独特征, 不会有其它更相似的点).

(5)最小要有3个 good_match 才认为图标匹配成功.

(6)最后根据 good_match 点的分布计算图标的中心, 我的做法是计算点集中心和平均距离, 将大于平均距离的点丢弃, 重复此过程, 直到半径小于阈值.

涉及到的方法有:

import cv2 as cv

sift = cv.xfeatures2d.SIFT_create()

index_params = dict(algorithm=0, trees=5)
search_params = dict(checks=50)
flann = cv.FlannBasedMatcher(index_params, search_params)

keypoints, descriptors = sift.detectAndCompute(image, None)

matches = flann.knnMatch(
    queryDescriptors=template_descriptors,
    trainDescriptors=scene_descriptors,
    k=2
)

good_matches = []
for m, n in matches:
    if m.distance < 0.7 * n.distance:
        good_matches.append(m)

k = 3
if len(good_matches) > k:
    print(good_matches)
else:
    print("Not enough matches are found - %d/%d" % (len(good_matches), k))

参考链接:

https://docs.opencv.org/3.0-beta/index.html

bbox 对应类别 category 的文字为:

CATEGORIES = [
    "红黑白QQ图标", "绿边白色微信图标", "淡蓝底全白QQ图标",
    "绿底全白微信图标", "大绿小白微信图标", "纯色微信图标", "纯色QQ图标"
]
Downloads last month
31
Edit dataset card