import numpy as np
thresh = 0.8
dets = np.array([[100,100,200,200,0.8],
[300,300,400,400,0.75],
[101,101,202,202,0.78],
[135,135,345,345,0.65],
[400,230,567,345,0.9],
[12,12,98,98,0.9]])
x1 = dets[:, 0]
x2 = dets[1, 0]
print(x1)
print(x2)
结果为:
[100. 300. 101. 135. 400. 12.]
300.0