how do I import a video? #86
-
|
I want to instead of trying to scan a still image I want to instead import a video file and detect all the text inside it and print it to the console maybe I could try and use opencv if this is possible? just not quite too sure how I would get it integrated into ocrs? |
Beta Was this translation helpful? Give feedback.
Answered by
robertknight
Jun 9, 2024
Replies: 1 comment 1 reply
-
|
To process a video you will need to:
To speed up extraction, you will probably want to sample only a subset of the frames. For example, extract only 1 in every N frames. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Raj2032
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To process a video you will need to:
VideoCaptureAPIs)ocrs::ImageSource::from_bytesto prepare the image for Ocrs to process.ImageSource, you can then feed it into text recognition following the steps in the example.To speed up extraction, you will probably want to sample only a subset of the frames. For example, extract only 1 in every N frames.