Ask Your Question

Revision history [back]

Print specifics data/index object detected the same classes id in Array

I am working object detection implemented in Python, atfter detected the output example of multidimention array below, based on each classis will be represented [x,y,width, height]:

[[2433 1629 2656 1910] [2275 962 2538 1264] [2284 1191 2533 1472] [2303 1380 2551 1662] [2461 1442 2694 1732] [2284 1558 2533 1852] [2433 1261 2671 1524] [...................] ] There is a matrix [nx4], includes x, y, width, height Now I want to return index/data the objects that have the same class's id. How can I implement in Python or/and Numpy? I also asked this question in stackoverflow.