Beispiel #1
0
class CBRTestCase(unittest.TestCase):
    def setUp(self):
        logging.basicConfig(level=logging.DEBUG)
        video_uri = md().video_uri
        video = Video(video_uri)
        self.video_req = Video(video_uri,begin=60,end=70)
        self.cbr = ContentBasedRetrieval(video)

    def test_cbr(self):
        res = self.cbr.find(self.video_req)
        self.assertEqual(res,[1438])
Beispiel #2
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     video_uri = md().video_uri
     video = Video(video_uri)
     self.video_req = Video(video_uri,begin=60,end=70)
     self.cbr = ContentBasedRetrieval(video)