MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_dataset

Method test_dataset

tests/data/test_video_datasets.py:129–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127
128 @unittest.skipUnless(has_cv2, "OpenCV required.")
129 def test_dataset(self):
130 super().test_dataset(self.known_num_frames, self.known_fps)
131 self.assertEqual(self.get_ds().get_num_frames(), self.known_num_frames)
132
133 def test_available_codecs(self):
134 codecs = VideoFileDataset.get_available_codecs()

Callers

nothing calls this directly

Calls 2

get_num_framesMethod · 0.80
get_dsMethod · 0.80

Tested by

no test coverage detected