Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added tests/test_diff_motion_detector/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/test_diff_motion_detector/foreground.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tests/test_diff_motion_detector/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by CodiumAI
from deepgaze.deepgaze.motion_detection import DiffMotionDetector
import cv2


import pytest

class TestDiffMotionDetector:

# Tests that the background image is set successfully
def test_set_background_successfully(self):
detector = DiffMotionDetector()
background_image = cv2.imread('background.jpg')
detector.setBackground(background_image)
assert detector.getBackground() is not None