Skip to content
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

VideoLearner inside utils_cv.action_recognition.model [ASK] #575

Open
usworked opened this issue Jun 29, 2020 · 3 comments
Open

VideoLearner inside utils_cv.action_recognition.model [ASK] #575

usworked opened this issue Jun 29, 2020 · 3 comments

Comments

@usworked
Copy link

Description

I'm looking at the Action Recognition model by loading a video file. It seems VideoLearner is using predict_video. Is there a way to use this to split or trim a video based off the classes? In other words, exporting/saving multiple video files from one based off the class presented?

@PatrickBue
Copy link
Contributor

Not 100% what you mean. In its current version we do not support trimming of videos (e.g. ffmpeg could maybe be used for that)

@usworked
Copy link
Author

Sorry, let me rephrase.

Currently, using Jupyter, my last line of code is

learner.predict_video(
    video,
    LABELS,
    averaging_size=AVERAGING_SIZE,
    score_threshold=SCORE_THRESHOLD,
    target_labels=TARGET_LABELS,
)

How do I loop over all the prediction labels so I can cut out subclips?

@PatrickBue
Copy link
Contributor

Fyi @jiata

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

No branches or pull requests

2 participants