Skip to content

Commit

Permalink
armv7s slice + updated tesseract to SVN r775)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldiqual committed Oct 10, 2012
1 parent 3ea65b6 commit 119c71c
Show file tree
Hide file tree
Showing 54 changed files with 7,997 additions and 33 deletions.
5 changes: 5 additions & 0 deletions include/tesseract/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ class TESS_API TessBaseAPI {
*/
void GetLoadedLanguagesAsVector(GenericVector<STRING>* langs) const;

/**
* Returns the available languages in the vector of STRINGs.
*/
void GetAvailableLanguagesAsVector(GenericVector<STRING>* langs) const;

/**
* Init only the lang model component of Tesseract. The only functions
* that work after this init are SetVariable and IsValidWord.
Expand Down
12 changes: 5 additions & 7 deletions include/tesseract/basedir.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
#ifndef BASEDIR_H
#define BASEDIR_H

#include "host.h"
#include "platform.h"
#include "strngs.h"

#include "notdll.h" //must be last include
// Returns the given code_path truncated to the last slash.
// Useful for getting to the directory of argv[0], but does not search
// any paths.
TESS_API void truncate_path(const char *code_path, STRING* trunc_path);

DLLSYM inT8 getpath( //get dir name of code
const char *code, //executable to locate
const STRING &dll_module_name,
STRING &path //output path name
);
#endif
29 changes: 29 additions & 0 deletions include/tesseract/blckerr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**********************************************************************
* File: blckerr.h (Formerly blockerr.h)
* Description: Error codes for the page block classes.
* Author: Ray Smith
* Created: Tue Mar 19 17:43:30 GMT 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
** http://www.apache.org/licenses/LICENSE-2.0
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*
**********************************************************************/

#ifndef BLCKERR_H
#define BLCKERR_H

#include "errcode.h"

const ERRCODE BADBLOCKLINE = "Y coordinate in block out of bounds";
const ERRCODE LOSTBLOCKLINE = "Can't find rectangle for line";
const ERRCODE ILLEGAL_GRADIENT = "Gradient wrong side of edge step!";
const ERRCODE WRONG_WORD = "Word doesn't have blobs of that type";
#endif
Loading

0 comments on commit 119c71c

Please sign in to comment.