area#

area(boxes)[source]#

Computes area of boxes.

Parameters

boxes (np.ndarray) – A numpy array with shape [N, 4] holding N boxes.

Returns

A numpy array with shape [N*1] representing box areas.

Return type

np.ndarray