Closed kftsehk closed 2 years ago
@kftsehk, I tried to use your modified version, but at some point it stops with "The system cannot write to the specified device" error...
hi, the program will write the srt file, and the updated version with debug enabled will also write each frame’s region of interest.
Please confirm you do not have an issue with disk capacity, and post a stack trace.
@kftsehk, how do I get a stack trace? It just prints that message, no details.
A few features to the API that I find useful
tesseract_config: str
: extra config that will be passed directly to tesseract, changing some of these configs may increase accuracyroi: [[float, float], [float, float]]
: replacesuse_fullframe
, allow specifying region of interest in terms of % of video height and width, exact syntax is[[x_start, x_end], [y_start, y_end]]
, default is[[0,1],[0,1]]
which is equal touse_fullframe=True
num_jobs: int
:num_cpus
top_tqdm
, p_tqdm shows a progress bar and estimated completion time, which can be useful for longer video.debug: bool
: If true, writes each ROI frame to working directory, useful for adjusting ROI.Example usage:
Some findings not patched: