Example #1
0
    def test_run_cambi_runner_10b(self):
        _, _, asset, asset_original = set_default_cambi_video_for_testing_10b()
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None,
                                          optional_dict={})
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'], 0.01451, places=4)
Example #2
0
    def test_run_cambi_runner(self):
        _, _, asset, asset_original = set_default_576_324_videos_for_testing()
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None)
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'],
                               0.6892500624999999,
                               places=4)
        self.assertAlmostEqual(results[1]['Cambi_score'],
                               0.0014658541666666667,
                               places=4)
Example #3
0
    def test_run_cambi_runner_scale(self):
        _, _, asset, asset_original = set_default_576_324_videos_for_testing_scaled(
        )
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None,
                                          optional_dict={})
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'],
                               0.9204257916666666,
                               places=4)
        self.assertAlmostEqual(results[1]['Cambi_score'],
                               0.004251791666666667,
                               places=4)
Example #4
0
class CambiQualityRunnerTest(MyTestCase):
    def test_run_cambi_runner(self):
        _, _, asset, asset_original = set_default_576_324_videos_for_testing()
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None)
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'],
                               0.6892500624999999,
                               places=4)
        self.assertAlmostEqual(results[1]['Cambi_score'],
                               0.0014658541666666667,
                               places=4)

    def test_run_cambi_runner_scale(self):
        _, _, asset, asset_original = set_default_576_324_videos_for_testing_scaled(
        )
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None,
                                          optional_dict={})
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'],
                               0.9204257916666666,
                               places=4)
        self.assertAlmostEqual(results[1]['Cambi_score'],
                               0.004251791666666667,
                               places=4)

    def test_run_cambi_runner_scale_b(self):
        _, _, asset, asset_original = set_default_cambi_video_for_testing_b()
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None,
                                          optional_dict={})
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'], 1.218365, places=4)

    def test_run_cambi_runner_10b(self):
        _, _, asset, asset_original = set_default_cambi_video_for_testing_10b()
        self.qrunner = CambiQualityRunner([asset, asset_original],
                                          None,
                                          fifo_mode=False,
                                          result_store=None,
                                          optional_dict={})
        self.qrunner.run(parallelize=True)
        results = self.qrunner.results

        # score: arithmetic mean score over all frames
        self.assertAlmostEqual(results[0]['Cambi_score'], 0.01451, places=4)