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

Enhancement Suggestion: add timespan(s) option #35

Open
keeyor opened this issue Mar 4, 2023 · 1 comment
Open

Enhancement Suggestion: add timespan(s) option #35

keeyor opened this issue Mar 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@keeyor
Copy link

keeyor commented Mar 4, 2023

This is a great tool, but unfortunately we cannot incorporate it in our project. The video process duration is prohibitive ( FHD video, typically 1 hour long).
Suggestion: since in our videos, faces appear rarely and for a few seconds, it would be great if an option existed where we could mark the time span that the faces appear, so the tool would process just a few seconds and not the entire video. This would significantly speed up the process.

Thanks for your time.

@mdraw mdraw added the enhancement New feature or request label Mar 6, 2023
@mdraw
Copy link
Member

mdraw commented Mar 6, 2023

I don't plan to implement this option but contributions are welcome if you want to work on this. I guess this should be easy to implement in principle by checking the frame timestamp inside this loop for your project but the main difficulty will be to properly expose this functionality in the CLI, document and maintain it.

Alternatively I suggest trying out the --scale option to run the detector on a downsampled frames. The output video size stays the same but processing can be greatly sped up at the cost of accuracy. See https://github.com/ORB-HD/deface/blob/master/README.md#high-resolution-media-and-performance-issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants