def __init__(self): rospack = rospkg.RosPack() pkgDir = rospack.get_path('rapp_testing_tools') imagepath = path.join(pkgDir, 'test_data', 'face_samples', 'multi_faces_frames', 'two_faces.jpg') self.msg = FaceDetection(imageFilepath=imagepath, fast=False) self.svc = RappPlatformService(persistent=True, msg=self.msg) self.valid_numFaces = 2
def __init__(self): rospack = rospkg.RosPack() pkgDir = rospack.get_path('rapp_testing_tools') imagepath = path.join(pkgDir, 'test_data', 'face_samples', 'klpanagi_medium_straight.jpg') self.msg = FaceDetection(imageFilepath=imagepath, fast=False) self.svc = RappPlatformService(persistent=True, msg=self.msg) self.valid_faces = [{ 'up_left_point': {'y': 545.0, 'x': 720.0}, 'down_right_point': {'y': 672.0, 'x': 847.0} }]
def __init__(self): rospack = rospkg.RosPack() pkgDir = rospack.get_path('rapp_testing_tools') imagepath = path.join(pkgDir, 'test_data', 'face_samples', 'etsardou_far_angle.jpg') self.msg = FaceDetection(imageFilepath=imagepath, fast=False) self.svc = RappPlatformService(persistent=True) self.valid_faces = [{ 'up_left_point': { 'y': 394.0, 'x': 726.0 }, 'down_right_point': { 'y': 510.0, 'x': 842.0 } }]
def setUp(self): self.startTime = time.time() self.msg = FaceDetection() self.msg.req.imageFilepath = path.join(testdatadir, 'Lenna.png') self.msg.req.fast = False self.svc = Service(msg=self.msg, persistent=True, timeout=15000)
def setUp(self): self.msg = FaceDetection() self.msg.req.imageFilepath = path.join(testdatadir, 'Lenna.png') self.msg.req.fast = True self.startTime = time.time()
def test_attribute_error(self): msg = FaceDetection(filepath=path.join(testdatadir, 'Lenna.png'), fast=True)
def setUp(self): self.msg = FaceDetection() self.startTime = time.time()