

def test_farneback_optical_flow_hires(self):
    img_1 = os.path.join(settings['tempdir'], '~test_farneback_optical_flow_hires_1.jpg')
    img_2 = os.path.join(settings['tempdir'], '~test_farneback_optical_flow_hires_2.jpg')
    mk_sample_image(img_1, 4096, 2160, 3)
    mk_sample_image(img_2, 4096, 2160, 3)
    fr_1 = cv2.imread(img_1)
    fr_2 = cv2.imread(fr_2)
    fr_1_gr = cv2.cvtColor(fr_1, cv2.COLOR_BGR2GRAY)
    fr_2_gr = cv2.cvtColor(fr_2, cv2.COLOR_BGR2GRAY)
    self.assertIsNotNone(ocl_farneback_optical_flow(fr_1_gr, fr_2_gr, 0.5, 3, 15, 3, 7, 1.5, False, 0))

dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py OpticalFlowTestCase.test_farneback_optical_flow_hires/VarMisuse@79/148 `img_2`->`fr_2`