mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +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"
|
echo "Usage:$0 pagesfile"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ccmain ]
|
if [ ! -d api ]
|
||||||
then
|
then
|
||||||
echo "Run $0 from the tesseract-ocr root directory!"
|
echo "Run $0 from the tesseract-ocr root directory!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -20,12 +20,12 @@ then
|
|||||||
echo "Usage:$0 unlv-data-dir version-id"
|
echo "Usage:$0 unlv-data-dir version-id"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ccmain ]
|
if [ ! -d api ]
|
||||||
then
|
then
|
||||||
echo "Run $0 from the tesseract-ocr root directory!"
|
echo "Run $0 from the tesseract-ocr root directory!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -r ccmain/tesseract -a ! -r tesseract.exe ]
|
if [ ! -r api/tesseract -a ! -r tesseract.exe ]
|
||||||
then
|
then
|
||||||
echo "Please build tesseract before running $0"
|
echo "Please build tesseract before running $0"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -15,17 +15,17 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
if [ $# -ne 1 ]
|
if [ $# -ne 1 -a $# -ne 2 ]
|
||||||
then
|
then
|
||||||
echo "Usage:$0 pagesfile"
|
echo "Usage:$0 pagesfile [-zoning]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ccmain ]
|
if [ ! -d api ]
|
||||||
then
|
then
|
||||||
echo "Run $0 from the tesseract-ocr root directory!"
|
echo "Run $0 from the tesseract-ocr root directory!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -r ccmain/tesseract ]
|
if [ ! -r api/tesseract ]
|
||||||
then
|
then
|
||||||
if [ ! -r tesseract.exe ]
|
if [ ! -r tesseract.exe ]
|
||||||
then
|
then
|
||||||
@ -35,12 +35,11 @@ then
|
|||||||
tess="./tesseract.exe"
|
tess="./tesseract.exe"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
tess="time -f %U -o times.txt ccmain/tesseract"
|
tess="time -f %U -o times.txt api/tesseract"
|
||||||
export TESSDATA_PREFIX=$PWD/
|
export TESSDATA_PREFIX=$PWD/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pages=$1
|
pages=$1
|
||||||
|
|
||||||
imdir=${pages%/pages}
|
imdir=${pages%/pages}
|
||||||
setname=${imdir##*/}
|
setname=${imdir##*/}
|
||||||
if [ $# -eq 2 -a "$2" = "-zoning" ]
|
if [ $# -eq 2 -a "$2" = "-zoning" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user