Skip to content

UnboundLocalError in detect_scenes when frame_skip is larger than 0. #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
twostarxx opened this issue Nov 8, 2019 · 1 comment
Closed
Labels
Milestone

Comments

@twostarxx
Copy link

Bug/Issue Description:

"UnboundLocalError: local variable 'read_frame' referenced before assignment" when running scene_manager.detect_scenes(frame_source=video_manager, frame_skip=1)

Required Information:

We hit this error when frame_skip is larger than 0.

Expected Behavior:

It works when we assign frame_skip.

Computing Environment:

  • OS: [e.g. Windows, Linux (Distro: Ubuntu, Mint, Fedora, etc...), OSX]
  • Python Version: [e.g. 3.6 or 3.6.6]
  • OpenCV Version: [e.g. 3.4.1]

Additional Information:

@Breakthrough
Copy link
Owner

Thank you for your issue report and pull request!

This will be included in the next release of PySceneDetect, thank you so much.

@Breakthrough Breakthrough added this to the v0.5.2 milestone Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants