示例#1
0
  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
示例#2
0
  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}
    }]
示例#3
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
            }
        }]
示例#4
0
文件: async.py 项目: zaxrok/rapp-api
 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)
示例#5
0
 def setUp(self):
     self.msg = FaceDetection()
     self.msg.req.imageFilepath = path.join(testdatadir, 'Lenna.png')
     self.msg.req.fast = True
     self.startTime = time.time()
示例#6
0
 def test_attribute_error(self):
     msg = FaceDetection(filepath=path.join(testdatadir, 'Lenna.png'),
                         fast=True)
示例#7
0
 def setUp(self):
     self.msg = FaceDetection()
     self.startTime = time.time()