Merge pull request #137 from amiaopensource/with-tesseract

adds disclaimer about needing tesseract library for OCR scripts
This commit is contained in:
Reto Kromer 2017-01-29 07:16:37 +01:00 committed by GitHub
commit 044afb9adb

View File

@ -488,6 +488,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="well"> <div class="well">
<h3>Plays video with OCR on top</h3> <h3>Plays video with OCR on top</h3>
<p>Note: ffmpeg must be compiled with the tesseract library for this script to work (<code>--with-tesseract</code> if using <code>brew install ffmpeg</code> method)</p>
<p><code>ffplay input_file -vf "ocr,drawtext=fontfile=/Library/Fonts/Andale Mono.ttf:text=%{metadata\\\:lavfi.ocr.text}:fontcolor=white"</code></p> <p><code>ffplay input_file -vf "ocr,drawtext=fontfile=/Library/Fonts/Andale Mono.ttf:text=%{metadata\\\:lavfi.ocr.text}:fontcolor=white"</code></p>
<dl> <dl>
<dt>ffplay</dt><dd>starts the command</dd> <dt>ffplay</dt><dd>starts the command</dd>
@ -520,6 +521,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="well"> <div class="well">
<h3>Exports OCR data to screen</h3> <h3>Exports OCR data to screen</h3>
<p>Note: ffmpeg must be compiled with the tesseract library for this script to work (<code>--with-tesseract</code> if using <code>brew install ffmpeg</code> method)</p>
<p><code>ffprobe -show_entries frame_tags=lavfi.ocr.text -f lavfi -i "movie=<i>input_file</i>,ocr"</code></p> <p><code>ffprobe -show_entries frame_tags=lavfi.ocr.text -f lavfi -i "movie=<i>input_file</i>,ocr"</code></p>
<dl> <dl>
<dt>ffprobe</dt><dd>starts the command</dd> <dt>ffprobe</dt><dd>starts the command</dd>