def test_relpos_size(self): obj_data = get_relpos(create_bound_boxes(), get_field_size()) np.testing.assert_allclose(self.size, np.around(obj_data.size, decimals=4))
def test_properties(self): obj_data = get_relpos(create_bound_boxes(), get_field_size()) obj_prop = get_properties(obj_data, create_prop()) for index, item in enumerate(obj_prop): np.testing.assert_allclose(self.obj_prop_expected[index], np.around(obj_prop[index], decimals=4))
def test_relpos(self): obj_data = get_relpos(create_bound_boxes(), get_field_size()) self.assertEqual(self.number_of_b_boxes, obj_data.number_of_b_boxes)