Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docs/benchmark_e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document describes how to run and interpret the end-to-end (E2E) performanc

## Prerequisites

- Test video file located at `/workspace/assets/test_videos/video.mp4`
- Test video file located at `/workspace/assets/videos/test_videos/video.mp4`
- RTSP server implementation at `/workspace/src/rtsp/rtsp_server.py`
- DeepStream pipeline at `/workspace/src/deepstream_pipeline.py`

Expand Down
12 changes: 6 additions & 6 deletions docs/frame_comparison_results.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ Videos were created from frames of the domain RTSP sample video.

## Scripts

| Script | Purpose |
| ------------------------------ | ---------------------------------------------------------------------------------- |
| `create_sample_videos.py` | Generates the four short videos above. |
| `compare_frames_methods.py` | Tests and compares multiple frame comparison approaches. |
| `src/frame_change_detector.py` | Provides a reusable class for detecting visual changes between consecutive frames. |
| `scripts/test_detector.py` | Example usage of the detector in a simple video loop. |
| Script | Purpose |
| ----------------------------------------------- |----------------------------------------------------------------------------------- |
| `src/frame_comparison/create_sample_videos.py` | Generates the four short videos above. |
| `src/frame_comparison/compare_frames_methods.py`| Tests and compares multiple frame comparison approaches. |
| `src/frame_comparison/frame_change_detector.py` | Provides a reusable class for detecting visual changes between consecutive frames. |
| `src/frame_comparison/test_detector.py` | Example usage of the detector in a simple video loop. |

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cv2
from src.frame_change_detector import FrameChangeDetector
from frame_change_detector import FrameChangeDetector


def run_detector(video_path: str) -> None:
Expand All @@ -19,4 +19,4 @@ def run_detector(video_path: str) -> None:


if __name__ == "__main__":
run_detector("assets/frame_change_videos/videos/new_scene.mp4")
run_detector("assets/videos/frame_change_videos/new_scene.mp4")
2 changes: 1 addition & 1 deletion src/frames_skipping_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import cv2
from gi.repository import GLib, Gst

from frame_change_detector import FrameChangeDetector
from frame_comparison.frame_change_detector import FrameChangeDetector

# configurations
RTSP_URL = "rtsp://127.0.0.1:8554/test"
Expand Down
Loading