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

Detect a scenes by a text in the corner #234

Open
mrahmadt opened this issue Aug 27, 2021 · 3 comments
Open

Detect a scenes by a text in the corner #234

mrahmadt opened this issue Aug 27, 2021 · 3 comments
Labels

Comments

@mrahmadt
Copy link

First of all, apologize if this is not the place to ask questions, please let me know if you have another place, and will post it over there.

I have thousands of small videos (3-5 minutes) with multiple scenes in each video, each scene has a text written in the left/right corn of the video.

is there a way to use the text change to detect the start/end of each scene? I'm sure this will be way easier than the detect content filter and will provide a way better results for my videos.

Thanks

@wjs018
Copy link
Collaborator

wjs018 commented Aug 29, 2021

See #147 for some discussion on this issue. At the moment, this is on the roadmap for a future release. Per that issue, you could investigate using DVR-Scan for this purpose.

@Breakthrough
Copy link
Owner

As @wjs018 said, you might want to look into using DVR-Scan with the -roi argument to specify a small region around the text. Doing this robustly in a general sense can be difficult, however, since it depends quite a bit on how the background is changing, as well as if the text colour changes.

If the backgrounds remain relatively static within a scene, DVR-Scan should be able to handle this fairly robustly out of the box for your use case. If not though, a better approach might be to use optical character recognition. It's definitely possible to hack up a custom detector type and add it to the command line (we should add some documentation on how to do this).

(Unrelated, but it would be awesome in the future to have some kind of plugin system where you could pip install other detector types, that way it's easier to have unofficial detector types.)

@Breakthrough
Copy link
Owner

Also, if anyone can provide a small amount of samples (@kimlia545 / @mrahmadt) or even screenshots, that would be helpful for working on this feature as well as testing.

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

3 participants