Skip to content

Conversation

@vtank4
Copy link

@vtank4 vtank4 commented May 13, 2025

Optical Flow class with test by video

@vtank4 vtank4 requested a review from tall-josh May 13, 2025 04:06
@vtank4 vtank4 self-assigned this May 13, 2025
@tall-josh
Copy link
Collaborator

tall-josh commented May 13, 2025

Please create tests/test_optical_flow.py

def test_optical_flow():
    # assert the expected values match the actual values output from the OpticalFlow class
    

# Store current frame for next comparison
self.prev_frame = frame_tensor

return movement_score
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please:

  1. rename flow to flow_vectors
  2. have update return flow_vectors not movement_score
  3. make another function def compute_movement_score(self, flow) -> float:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants