mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Update for move of top-level to api directory
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@328 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
f01a33ae96
commit
7a2a378699
@ -20,7 +20,7 @@ then
|
||||
echo "Usage:$0 pagesfile"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d ccmain ]
|
||||
if [ ! -d api ]
|
||||
then
|
||||
echo "Run $0 from the tesseract-ocr root directory!"
|
||||
exit 1
|
||||
|
@ -20,12 +20,12 @@ then
|
||||
echo "Usage:$0 unlv-data-dir version-id"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d ccmain ]
|
||||
if [ ! -d api ]
|
||||
then
|
||||
echo "Run $0 from the tesseract-ocr root directory!"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -r ccmain/tesseract -a ! -r tesseract.exe ]
|
||||
if [ ! -r api/tesseract -a ! -r tesseract.exe ]
|
||||
then
|
||||
echo "Please build tesseract before running $0"
|
||||
exit 1
|
||||
|
@ -15,17 +15,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
if [ $# -ne 1 ]
|
||||
if [ $# -ne 1 -a $# -ne 2 ]
|
||||
then
|
||||
echo "Usage:$0 pagesfile"
|
||||
echo "Usage:$0 pagesfile [-zoning]"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d ccmain ]
|
||||
if [ ! -d api ]
|
||||
then
|
||||
echo "Run $0 from the tesseract-ocr root directory!"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -r ccmain/tesseract ]
|
||||
if [ ! -r api/tesseract ]
|
||||
then
|
||||
if [ ! -r tesseract.exe ]
|
||||
then
|
||||
@ -35,12 +35,11 @@ then
|
||||
tess="./tesseract.exe"
|
||||
fi
|
||||
else
|
||||
tess="time -f %U -o times.txt ccmain/tesseract"
|
||||
tess="time -f %U -o times.txt api/tesseract"
|
||||
export TESSDATA_PREFIX=$PWD/
|
||||
fi
|
||||
|
||||
pages=$1
|
||||
|
||||
imdir=${pages%/pages}
|
||||
setname=${imdir##*/}
|
||||
if [ $# -eq 2 -a "$2" = "-zoning" ]
|
||||
|
Loading…
Reference in New Issue
Block a user