/
githubmirror
/
tesseract
Обзор
Документация
Войти
/
githubmirror
/
tesseract
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ccutil/tesstypes.h
44 строки
1 KB
Stefan Weil
Prepare support for image width and height larger than 32767
27 окт 2021, 09:45
27 окт 2021, 09:45
59fbad0
Код
Авторство
О чём код?
/////////////////////////////////////////////////////////////////////// // File: tesstypes.h // Description: Simple data types used by Tesseract code. // Author: Stefan Weil // // 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 TESSERACT_TESSTYPES_H #define TESSERACT_TESSTYPES_H #ifdef HAVE_CONFIG_H # include "config_auto.h" // FAST_FLOAT #endif #include <cstdint> // for int16_t, int32_t namespace tesseract { // Image dimensions (width and height, coordinates). #if defined(LARGE_IMAGES) using TDimension = int32_t; #else using TDimension = int16_t; #endif // Floating point data type used for LSTM calculations. #if defined(FAST_FLOAT) using TFloat = float; #else using TFloat = double; #endif } #endif // TESSERACT_TESSTYPES_H