Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Extra "." appended to "savepath" in lucasKanadeOpticalFlow.py #16

Closed
hilletc7 opened this issue Oct 24, 2021 · 1 comment
Closed

Extra "." appended to "savepath" in lucasKanadeOpticalFlow.py #16

hilletc7 opened this issue Oct 24, 2021 · 1 comment

Comments

@hilletc7
Copy link

This is just something small, but the output path in "lucasKanadeOpticalFlow.py" appends and extra "." at the beginning of the path.

I don't know if this a setup is for some future implementation, or just a typo, but in its current state, savepath = '.'+ vidpath.split('.')[-2] + '_LK_FLOW' + '.mp4' creates an invalid output path.

Either savepath = pathparts[-2] + '_LK_FLOW' + '.mp4' or savepath = vidpath.split('.')[-2] + '_LK_FLOW' + '.mp4' will fix it for now.

https://github.com/jaredb1011/waldo-anticheat/blob/d634f4ca27a38436e620f63177a9f3dbffbd62dc/opticalFlow/lucasKanadeOpticalFlow.py#L87

I really like the idea for this project and I hope this takes off!

@jaredb1011
Copy link
Collaborator

So I had created a working folder in the same directory as this code and saved my input videos there, so that's why I had the extra period. It would probably be best to replace all of that with a GUI file selector

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants