code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 2010 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
//
// 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
// ... | 2301_81045437/tesseract | src/training/common/trainingsampleset.cpp | C++ | apache-2.0 | 31,396 |
// Copyright 2010 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
//
// 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
// ... | 2301_81045437/tesseract | src/training/common/trainingsampleset.h | C++ | apache-2.0 | 11,592 |
///////////////////////////////////////////////////////////////////////
// File: dawg2wordlist.cpp
// Description: Program to create a word list from a DAWG and unicharset.
// Author: David Eger
//
// (C) Copyright 2011, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you m... | 2301_81045437/tesseract | src/training/dawg2wordlist.cpp | C++ | apache-2.0 | 3,469 |
/**********************************************************************
* File: degradeimage.cpp
* Description: Function to degrade an image (usually of text) as if it
* has been printed and then scanned.
* Authors: Ray Smith
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache... | 2301_81045437/tesseract | src/training/degradeimage.cpp | C++ | apache-2.0 | 12,171 |
/**********************************************************************
* File: degradeimage.h
* Description: Function to degrade an image (usually of text) as if it
* has been printed and then scanned.
* Authors: Ray Smith
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache L... | 2301_81045437/tesseract | src/training/degradeimage.h | C++ | apache-2.0 | 2,946 |
///////////////////////////////////////////////////////////////////////
// File: lstmeval.cpp
// Description: Evaluation program for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2016, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file... | 2301_81045437/tesseract | src/training/lstmeval.cpp | C++ | apache-2.0 | 3,121 |
///////////////////////////////////////////////////////////////////////
// File: lstmtraining.cpp
// Description: Training program for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fi... | 2301_81045437/tesseract | src/training/lstmtraining.cpp | C++ | apache-2.0 | 10,551 |
///////////////////////////////////////////////////////////////////////
// File: merge_unicharsets.cpp
// Description: Simple tool to merge two or more unicharsets.
// Author: Ray Smith
//
// (C) Copyright 2015, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... | 2301_81045437/tesseract | src/training/merge_unicharsets.cpp | C++ | apache-2.0 | 2,159 |
/******************************************************************************
** Filename: MergeNF.c
** Purpose: Program for merging similar nano-feature protos
** Author: Dan Johnson
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Version 2.0 (the "License");
*... | 2301_81045437/tesseract | src/training/mergenf.cpp | C++ | apache-2.0 | 10,260 |
/******************************************************************************
** Filename: MergeNF.c
** Purpose: Program for merging similar nano-feature protos
** Author: Dan Johnson
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Version 2.0 (the "License");
... | 2301_81045437/tesseract | src/training/mergenf.h | C | apache-2.0 | 3,028 |
/******************************************************************************
** Filename: mftraining.c
** Purpose: Separates training pages into files for each character.
** Strips from files only the features and there parameters of
** the feature type mf.
** Author: Dan Johnso... | 2301_81045437/tesseract | src/training/mftraining.cpp | C++ | apache-2.0 | 10,950 |
/**********************************************************************
* File: boxchar.cpp
* Description: Simple class to associate a Tesseract classification unit with
* its bounding box so that the boxes can be rotated as the image
* is rotated for degradation. Also includes rou... | 2301_81045437/tesseract | src/training/pango/boxchar.cpp | C++ | apache-2.0 | 11,995 |
/**********************************************************************
* File: boxchar.h
* Description: Simple class to associate a Tesseract classification unit with
* its bounding box so that the boxes can be rotated as the image
* is rotated for degradation. Also includes routi... | 2301_81045437/tesseract | src/training/pango/boxchar.h | C++ | apache-2.0 | 5,250 |
#pragma once
#ifdef CMAKE_BUILD
# include <pango_training_export.h>
#endif
| 2301_81045437/tesseract | src/training/pango/export.h | C | apache-2.0 | 77 |
/**********************************************************************
* File: ligature_table.cpp
* Description: Class for adding and removing optional latin ligatures,
* conditional on codepoint support by a specified font
* (if specified).
* Author: Ranjith Unnikrishnan
*
... | 2301_81045437/tesseract | src/training/pango/ligature_table.cpp | C++ | apache-2.0 | 6,586 |
/**********************************************************************
* File: ligature_table.h
* Description: Class for adding and removing optional latin ligatures,
* conditional on codepoint support by a specified font
* (if specified).
* Author: Ranjith Unnikrishnan
* Cr... | 2301_81045437/tesseract | src/training/pango/ligature_table.h | C++ | apache-2.0 | 2,761 |
/**********************************************************************
* File: pango_font_info.cpp
* Description: Font-related objects and helper functions
* Author: Ranjith Unnikrishnan
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | 2301_81045437/tesseract | src/training/pango/pango_font_info.cpp | C++ | apache-2.0 | 26,578 |
/**********************************************************************
* File: pango_font_info.h
* Description: Font-related objects and helper functions
* Author: Ranjith Unnikrishnan
* Created: Mon Nov 18 2013
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version 2.0... | 2301_81045437/tesseract | src/training/pango/pango_font_info.h | C++ | apache-2.0 | 8,877 |
/**********************************************************************
* File: stringrenderer.cpp
* Description: Class for rendering UTF-8 text to an image, and retrieving
* bounding boxes around each grapheme cluster.
* Author: Ranjith Unnikrishnan
*
* (C) Copyright 2013, Google Inc.
*... | 2301_81045437/tesseract | src/training/pango/stringrenderer.cpp | C++ | apache-2.0 | 32,792 |
/**********************************************************************
* File: stringrenderer.h
* Description: Class for rendering UTF-8 text to an image, and retrieving
* bounding boxes around each grapheme cluster.
*
* Instances are created using a font description string
* ... | 2301_81045437/tesseract | src/training/pango/stringrenderer.h | C++ | apache-2.0 | 8,462 |
/**********************************************************************
* File: tlog.cpp
* Description: Variant of printf with logging level controllable by a
* commandline flag.
* Author: Ranjith Unnikrishnan
* Created: Wed Nov 20 2013
*
* (C) Copyright 2013, Google Inc.
** License... | 2301_81045437/tesseract | src/training/pango/tlog.cpp | C++ | apache-2.0 | 1,061 |
/**********************************************************************
* File: tlog.h
* Description: Variant of printf with logging level controllable by a
* commandline flag.
* Author: Ranjith Unnikrishnan
* Created: Wed Nov 20 2013
*
* (C) Copyright 2013, Google Inc.
** Licensed ... | 2301_81045437/tesseract | src/training/pango/tlog.h | C | apache-2.0 | 1,722 |
// 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 ... | 2301_81045437/tesseract | src/training/set_unicharset_properties.cpp | C++ | apache-2.0 | 1,673 |
// Copyright 2011 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
// 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
// Un... | 2301_81045437/tesseract | src/training/shapeclustering.cpp | C++ | apache-2.0 | 2,851 |
/**********************************************************************
* File: text2image.cpp
* Description: Program to generate OCR training pages. Given a text file it
* outputs an image with a given font and degradation.
*
* Note that since the results depend on the fonts avail... | 2301_81045437/tesseract | src/training/text2image.cpp | C++ | apache-2.0 | 29,584 |
#pragma once
#ifdef CMAKE_BUILD
# include <unicharset_training_export.h>
#endif
| 2301_81045437/tesseract | src/training/unicharset/export.h | C | apache-2.0 | 82 |
/**********************************************************************
* File: fileio.cpp
* Description: File I/O utilities.
* Author: Samuel Charron
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance... | 2301_81045437/tesseract | src/training/unicharset/fileio.cpp | C++ | apache-2.0 | 5,219 |
/**********************************************************************
* File: fileio.h
* Description: File I/O utilities.
* Author: Samuel Charron
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance w... | 2301_81045437/tesseract | src/training/unicharset/fileio.h | C++ | apache-2.0 | 3,566 |
///////////////////////////////////////////////////////////////////////
//
// 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... | 2301_81045437/tesseract | src/training/unicharset/icuerrorcode.cpp | C++ | apache-2.0 | 988 |
/**********************************************************************
* File: icuerrorcode.h
* Description: Wrapper class for UErrorCode, with conversion operators for
* direct use in ICU C and C++ APIs.
* Author: Fredrik Roubert
* Created: Thu July 4 2013
*
* Features:
* - The co... | 2301_81045437/tesseract | src/training/unicharset/icuerrorcode.h | C++ | apache-2.0 | 2,340 |
// Copyright 2017 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
// Purpose: Collection of convenience functions to simplify creation of the
// unicharset, recoder, and dawgs for an LSTM model.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this ... | 2301_81045437/tesseract | src/training/unicharset/lang_model_helpers.cpp | C++ | apache-2.0 | 10,200 |
// Copyright 2017 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
// Purpose: Collection of convenience functions to simplify creation of the
// unicharset, recoder, and dawgs for an LSTM model.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this ... | 2301_81045437/tesseract | src/training/unicharset/lang_model_helpers.h | C++ | apache-2.0 | 4,497 |
///////////////////////////////////////////////////////////////////////
// File: lstmtester.cpp
// Description: Top-level line evaluation class for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2016, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | 2301_81045437/tesseract | src/training/unicharset/lstmtester.cpp | C++ | apache-2.0 | 6,121 |
///////////////////////////////////////////////////////////////////////
// File: lstmtester.h
// Description: Top-level line evaluation class for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2016, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not ... | 2301_81045437/tesseract | src/training/unicharset/lstmtester.h | C++ | apache-2.0 | 4,009 |
///////////////////////////////////////////////////////////////////////
// File: lstmtrainer.cpp
// Description: Top-level line trainer class for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not ... | 2301_81045437/tesseract | src/training/unicharset/lstmtrainer.cpp | C++ | apache-2.0 | 56,797 |
///////////////////////////////////////////////////////////////////////
// File: lstmtrainer.h
// Description: Top-level line trainer class for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... | 2301_81045437/tesseract | src/training/unicharset/lstmtrainer.h | C++ | apache-2.0 | 21,977 |
/**********************************************************************
* File: normstrngs.cpp
* Description: Utilities to normalize and manipulate UTF-32 and
* UTF-8 strings.
* Author: Ranjith Unnikrishnan
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version ... | 2301_81045437/tesseract | src/training/unicharset/normstrngs.cpp | C++ | apache-2.0 | 11,677 |
/**********************************************************************
* File: normstrngs.h
* Description: Utilities to normalize and manipulate UTF-32 and
* UTF-8 strings.
* Author: Ranjith Unnikrishnan
* Created: Thu July 4 2013
*
* (C) Copyright 2013, Google Inc.
* Licensed unde... | 2301_81045437/tesseract | src/training/unicharset/normstrngs.h | C++ | apache-2.0 | 4,143 |
///////////////////////////////////////////////////////////////////////
// File: unicharset_training_utils.cpp
// Description: Training utilities for UNICHARSET.
// Author: Ray Smith
// Created: Fri Oct 17 17:09:01 PDT 2014
//
// (C) Copyright 2014, Google Inc.
// Licensed under the Apache License, Vers... | 2301_81045437/tesseract | src/training/unicharset/unicharset_training_utils.cpp | C++ | apache-2.0 | 8,688 |
///////////////////////////////////////////////////////////////////////
// File: unicharset_training_utils.h
// Description: Training utilities for UNICHARSET.
// Author: Ray Smith
//
// (C) Copyright 2014, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use thi... | 2301_81045437/tesseract | src/training/unicharset/unicharset_training_utils.h | C++ | apache-2.0 | 2,594 |
#include "validate_grapheme.h"
#include "tprintf.h"
#include "unicode/uchar.h" // From libicu
namespace tesseract {
bool ValidateGrapheme::ConsumeGraphemeIfValid() {
const unsigned num_codes = codes_.size();
char32 prev_prev_ch = ' ';
char32 prev_ch = ' ';
CharClass prev_cc = CharClass::kWhitespace;
int num... | 2301_81045437/tesseract | src/training/unicharset/validate_grapheme.cpp | C++ | apache-2.0 | 7,543 |
#ifndef TESSERACT_TRAINING_VALIDATE_GRAPHEME_H_
#define TESSERACT_TRAINING_VALIDATE_GRAPHEME_H_
#include "validator.h"
namespace tesseract {
// Subclass of Validator that validates and segments generic unicode into
// grapheme clusters, including Latin with diacritics.
class ValidateGrapheme : public Validator {
pub... | 2301_81045437/tesseract | src/training/unicharset/validate_grapheme.h | C++ | apache-2.0 | 1,316 |
#include "validate_indic.h"
#include "errcode.h"
#include "tprintf.h"
namespace tesseract {
// Returns whether codes matches the pattern for an Indic Grapheme.
// The ISCII standard http://varamozhi.sourceforge.net/iscii91.pdf
// has a BNF for valid syllables (Graphemes) which is modified slightly
// for Unicode. No... | 2301_81045437/tesseract | src/training/unicharset/validate_indic.cpp | C++ | apache-2.0 | 11,862 |
#ifndef TESSERACT_TRAINING_VALIDATE_INDIC_H_
#define TESSERACT_TRAINING_VALIDATE_INDIC_H_
#include "validator.h"
namespace tesseract {
// Subclass of Validator that validates and segments Indic scripts in the
// unicode range 0x900-0xdff (Devanagari-Sinhala).
class ValidateIndic : public Validator {
public:
Valida... | 2301_81045437/tesseract | src/training/unicharset/validate_indic.h | C++ | apache-2.0 | 1,731 |
/**********************************************************************
* File: validate_javanese.cpp
* Description: Text validator for Javanese Script - aksara jawa.
* Author: Shree Devi Kumar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 2301_81045437/tesseract | src/training/unicharset/validate_javanese.cpp | C++ | apache-2.0 | 11,430 |
/**********************************************************************
* File: validate_javanese.h
* Description: Text validator for Javanese Script - aksara jawa.
* Author: Shree Devi Kumar
* Created: August 03, 2018
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 2301_81045437/tesseract | src/training/unicharset/validate_javanese.h | C++ | apache-2.0 | 2,571 |
#include "validate_khmer.h"
#include "errcode.h"
#include "tprintf.h"
namespace tesseract {
// Returns whether codes matches the pattern for a Khmer Grapheme.
// Taken from unicode standard:
// http://www.unicode.org/versions/Unicode9.0.0/ch16.pdf.
// where it gives: B {R | C} {S {R}}* {{Z} V} {O} {S}, using differen... | 2301_81045437/tesseract | src/training/unicharset/validate_khmer.cpp | C++ | apache-2.0 | 4,380 |
#ifndef TESSERACT_TRAINING_VALIDATE_KHMER_H_
#define TESSERACT_TRAINING_VALIDATE_KHMER_H_
#include "validator.h"
namespace tesseract {
// Subclass of Validator that validates and segments Khmer.
class ValidateKhmer : public Validator {
public:
ValidateKhmer(ViramaScript script, bool report_errors) : Validator(scri... | 2301_81045437/tesseract | src/training/unicharset/validate_khmer.h | C++ | apache-2.0 | 902 |
#include "validate_myanmar.h"
#include "errcode.h"
#include "icuerrorcode.h"
#include "tprintf.h"
#include "unicode/uchar.h" // From libicu
#include "unicode/uscript.h" // From libicu
namespace tesseract {
// Returns whether codes matches the pattern for a Myanmar Grapheme.
// Taken directly from the unicode table ... | 2301_81045437/tesseract | src/training/unicharset/validate_myanmar.cpp | C++ | apache-2.0 | 7,335 |
#ifndef TESSERACT_TRAINING_VALIDATE_MYANMAR_H_
#define TESSERACT_TRAINING_VALIDATE_MYANMAR_H_
#include "validator.h"
namespace tesseract {
// Subclass of Validator that validates and segments Myanmar.
class ValidateMyanmar : public Validator {
public:
ValidateMyanmar(ViramaScript script, bool report_errors) : Vali... | 2301_81045437/tesseract | src/training/unicharset/validate_myanmar.h | C++ | apache-2.0 | 1,856 |
#include "validator.h"
#include <algorithm>
#include <iterator>
#include <unordered_map>
#include <vector>
#include "icuerrorcode.h"
#include "unicode/uchar.h" // From libicu
#include "unicode/uscript.h" // From libicu
#include "validate_grapheme.h"
#include "validate_indic.h"
#include "validate_javanese.h"
#includ... | 2301_81045437/tesseract | src/training/unicharset/validator.cpp | C++ | apache-2.0 | 8,224 |
/**********************************************************************
* File: validator.h
* Description: Base class for various text validators. Intended mainly for
* scripts that use a virama character.
* Author: Ray Smith
*
* (C) Copyright 2017, Google Inc.
* Licensed under the Apach... | 2301_81045437/tesseract | src/training/unicharset/validator.h | C++ | apache-2.0 | 10,840 |
///////////////////////////////////////////////////////////////////////
// File: unicharset_extractor.cpp
// Description: Unicode character/ligature set extractor.
// Author: Thomas Kielbus
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | 2301_81045437/tesseract | src/training/unicharset_extractor.cpp | C++ | apache-2.0 | 4,678 |
///////////////////////////////////////////////////////////////////////
// File: wordlist2dawg.cpp
// Description: Program to generate a DAWG from a word list file
// Author: Thomas Kielbus
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | 2301_81045437/tesseract | src/training/wordlist2dawg.cpp | C++ | apache-2.0 | 4,228 |
///////////////////////////////////////////////////////////////////////
// File: scrollview.cpp
// Description: ScrollView
// Author: Joern Wanke
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... | 2301_81045437/tesseract | src/viewer/scrollview.cpp | C++ | apache-2.0 | 26,985 |
///////////////////////////////////////////////////////////////////////
// File: scrollview.h
// Description: ScrollView
// Author: Joern Wanke
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the ... | 2301_81045437/tesseract | src/viewer/scrollview.h | C++ | apache-2.0 | 15,338 |
///////////////////////////////////////////////////////////////////////
// File: svmnode.cpp
// description_: ScrollView Menu Node
// Author: Joern Wanke
// Created: Thu Nov 29 2007
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... | 2301_81045437/tesseract | src/viewer/svmnode.cpp | C++ | apache-2.0 | 4,969 |
///////////////////////////////////////////////////////////////////////
// File: svmnode.h
// description_: ScrollView Menu Node
// Author: Joern Wanke
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance w... | 2301_81045437/tesseract | src/viewer/svmnode.h | C++ | apache-2.0 | 3,697 |
///////////////////////////////////////////////////////////////////////
// File: svutil.cpp
// Description: ScrollView Utilities
// Author: Joern Wanke
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance w... | 2301_81045437/tesseract | src/viewer/svutil.cpp | C++ | apache-2.0 | 9,780 |
///////////////////////////////////////////////////////////////////////
// File: svutil.h
// Description: ScrollView Utilities
// Author: Joern Wanke
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wit... | 2301_81045437/tesseract | src/viewer/svutil.h | C++ | apache-2.0 | 3,069 |
///////////////////////////////////////////////////////////////////////
// File: associate.cpp
// Description: Functions for scoring segmentation paths according to
// their character widths, gap widths and seam cuts.
// Author: Daria Antonova
// Created: Mon Mar 8 11:26:43 PDT 2010
//
// (... | 2301_81045437/tesseract | src/wordrec/associate.cpp | C++ | apache-2.0 | 6,818 |
///////////////////////////////////////////////////////////////////////
// File: associate.h
// Description: Structs, classes, typedefs useful for the segmentation
// search. Functions for scoring segmentation paths according
// to their character widths, gap widths and seam cuts.
// Au... | 2301_81045437/tesseract | src/wordrec/associate.h | C++ | apache-2.0 | 4,870 |
/******************************************************************************
*
* File: chop.cpp (Formerly chop.c)
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file ... | 2301_81045437/tesseract | src/wordrec/chop.cpp | C++ | apache-2.0 | 9,661 |
/******************************************************************************
*
* File: chop.h
* Author: Mark Seaman, SW Productivity
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance... | 2301_81045437/tesseract | src/wordrec/chop.h | C++ | apache-2.0 | 1,157 |
/******************************************************************************
*
* File: chopper.cpp (Formerly chopper.c)
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use th... | 2301_81045437/tesseract | src/wordrec/chopper.cpp | C++ | apache-2.0 | 22,305 |
/**********************************************************************
* File: drawfx.cpp
* Description: Draw things to do with feature extraction.
* Author: Ray Smith
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use t... | 2301_81045437/tesseract | src/wordrec/drawfx.cpp | C++ | apache-2.0 | 2,569 |
/**********************************************************************
* File: drawfx.h
* Description: Draw things to do with feature extraction.
* Author: Ray Smith
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use thi... | 2301_81045437/tesseract | src/wordrec/drawfx.h | C++ | apache-2.0 | 1,224 |
/******************************************************************************
*
* File: findseam.cpp (Formerly findseam.c)
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use ... | 2301_81045437/tesseract | src/wordrec/findseam.cpp | C++ | apache-2.0 | 12,836 |
/******************************************************************************
*
* File: findseam.h
* Author: Mark Seaman, SW Productivity
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compli... | 2301_81045437/tesseract | src/wordrec/findseam.h | C++ | apache-2.0 | 1,273 |
/******************************************************************************
*
* File: gradechop.cpp (Formerly gradechop.c)
* Description:
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
*... | 2301_81045437/tesseract | src/wordrec/gradechop.cpp | C++ | apache-2.0 | 2,704 |
///////////////////////////////////////////////////////////////////////
// File: language_model.cpp
// Description: Functions that utilize the knowledge about the properties,
// structure and statistics of the language to help recognition.
// Author: Daria Antonova
//
// (C) Copyright 2009, Goo... | 2301_81045437/tesseract | src/wordrec/language_model.cpp | C++ | apache-2.0 | 65,241 |
///////////////////////////////////////////////////////////////////////
// File: language_model.h
// Description: Functions that utilize the knowledge about the properties,
// structure and statistics of the language to help segmentation
// search.
// Author: Daria Antonova
//
// (... | 2301_81045437/tesseract | src/wordrec/language_model.h | C++ | apache-2.0 | 18,663 |
///////////////////////////////////////////////////////////////////////
// File: lm_consistency.cpp
// Description: Struct for recording consistency of the paths representing
// OCR hypotheses.
// Author: Rika Antonova
// Created: Mon Jun 20 11:26:43 PST 2012
//
// (C) Copyright 2012, Goog... | 2301_81045437/tesseract | src/wordrec/lm_consistency.cpp | C++ | apache-2.0 | 3,908 |
///////////////////////////////////////////////////////////////////////
// File: lm_consistency.h
// Description: Struct for recording consistency of the paths representing
// OCR hypotheses.
// Author: Rika Antonova
//
// (C) Copyright 2012, Google Inc.
// Licensed under the Apache License, V... | 2301_81045437/tesseract | src/wordrec/lm_consistency.h | C++ | apache-2.0 | 4,507 |
///////////////////////////////////////////////////////////////////////
// File: pain_points.cpp
// Description: Functions that utilize the knowledge about the properties
// of the paths explored by the segmentation search in order
// to "pain points" - the locations in the ratings matr... | 2301_81045437/tesseract | src/wordrec/lm_pain_points.cpp | C++ | apache-2.0 | 9,110 |
///////////////////////////////////////////////////////////////////////
// File: lm_pain_points.h
// Description: Functions that utilize the knowledge about the properties
// of the paths explored by the segmentation search in order
// to generate "pain points" - the locations in the ra... | 2301_81045437/tesseract | src/wordrec/lm_pain_points.h | C++ | apache-2.0 | 4,983 |
///////////////////////////////////////////////////////////////////////
// File: lm_state.cpp
// Description: Structures and functionality for capturing the state of
// segmentation search guided by the language model.
// Author: Rika Antonova
//
// (C) Copyright 2012, Google Inc.
// Licensed u... | 2301_81045437/tesseract | src/wordrec/lm_state.cpp | C++ | apache-2.0 | 3,023 |
///////////////////////////////////////////////////////////////////////
// File: lm_state.h
// Description: Structures and functionality for capturing the state of
// segmentation search guided by the language model.
// Author: Rika Antonova
//
// (C) Copyright 2012, Google Inc.
// Licensed und... | 2301_81045437/tesseract | src/wordrec/lm_state.h | C++ | apache-2.0 | 10,034 |
/******************************************************************************
*
* File: outlines.cpp (Formerly outlines.c)
* Description: Combinatorial Splitter
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2... | 2301_81045437/tesseract | src/wordrec/outlines.cpp | C++ | apache-2.0 | 2,765 |
/******************************************************************************
*
* File: outlines.h
* Description: Combinatorial Splitter
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** y... | 2301_81045437/tesseract | src/wordrec/outlines.h | C | apache-2.0 | 4,812 |
///////////////////////////////////////////////////////////////////////
// File: params_model.cpp
// Description: Trained language model parameters.
// Author: David Eger
//
// (C) Copyright 2012, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exc... | 2301_81045437/tesseract | src/wordrec/params_model.cpp | C++ | apache-2.0 | 5,249 |
///////////////////////////////////////////////////////////////////////
// File: params_model.h
// Description: Trained feature serialization for language parameter training.
// Author: David Eger
//
// (C) Copyright 2011, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you... | 2301_81045437/tesseract | src/wordrec/params_model.h | C++ | apache-2.0 | 2,986 |
/******************************************************************************
*
* File: pieces.cpp
* Description:
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file... | 2301_81045437/tesseract | src/wordrec/pieces.cpp | C++ | apache-2.0 | 3,256 |
/******************************************************************************
*
* File: plotedges.cpp (Formerly plotedges.c)
* Description: Graphics routines for "Edges" and "Outlines" windows
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed und... | 2301_81045437/tesseract | src/wordrec/plotedges.cpp | C++ | apache-2.0 | 3,413 |
/******************************************************************************
*
* File: plotedges.h
* Description: Convert the various data type into line lists
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.... | 2301_81045437/tesseract | src/wordrec/plotedges.h | C++ | apache-2.0 | 1,610 |
/******************************************************************************
*
* File: render.cpp (Formerly render.c)
* Description: Convert the various data type into line lists
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache... | 2301_81045437/tesseract | src/wordrec/render.cpp | C++ | apache-2.0 | 4,094 |
/******************************************************************************
*
* File: render.h
* Description: Convert the various data type into line lists
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1989, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (... | 2301_81045437/tesseract | src/wordrec/render.h | C++ | apache-2.0 | 2,026 |
///////////////////////////////////////////////////////////////////////
// File: segsearch.cpp
// Description: Segmentation search functions.
// Author: Daria Antonova
//
// (C) Copyright 2009, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except... | 2301_81045437/tesseract | src/wordrec/segsearch.cpp | C++ | apache-2.0 | 14,344 |
/**********************************************************************
* File: tface.cpp (Formerly tface.c)
* Description: C side of the Tess/tessedit C/C++ interface.
* Author: Ray Smith
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
... | 2301_81045437/tesseract | src/wordrec/tface.cpp | C++ | apache-2.0 | 3,944 |
/******************************************************************************
*
* File: wordclass.cpp (Formerly wordclass.c)
* Description: Word classifier
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1990, Hewlett-Packard Company.
** Licensed under the Apache License, Version 2.0 (t... | 2301_81045437/tesseract | src/wordrec/wordclass.cpp | C++ | apache-2.0 | 3,082 |
///////////////////////////////////////////////////////////////////////
// File: wordrec.cpp
// Description: wordrec class.
// Author: Samuel Charron
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wit... | 2301_81045437/tesseract | src/wordrec/wordrec.cpp | C++ | apache-2.0 | 5,280 |
///////////////////////////////////////////////////////////////////////
// File: wordrec.h
// Description: wordrec class.
// Author: Samuel Charron
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... | 2301_81045437/tesseract | src/wordrec/wordrec.h | C++ | apache-2.0 | 19,445 |
void build(Solution &s)
{
auto &tess = s.addProject("google.tesseract", "main");
tess += Git("https://github.com/tesseract-ocr/tesseract", "", "{v}");
auto cppstd = cpp17;
auto &libtesseract = tess.addTarget<LibraryTarget>("libtesseract");
{
libtesseract.setChecks("libtesseract");
... | 2301_81045437/tesseract | sw.cpp | C++ | apache-2.0 | 13,061 |
datadir = @datadir@/tessdata
data_DATA = pdf.ttf
EXTRA_DIST = $(data_DATA)
SUBDIRS = configs tessconfigs
langdata =
uninstall-local:
cd $(DESTDIR)$(datadir); \
rm -f $(langdata)
| 2301_81045437/tesseract | tessdata/Makefile.am | Makefile | apache-2.0 | 184 |
datadir = @datadir@/tessdata/configs
data_DATA = inter makebox box.train unlv ambigs.train lstm.train lstmdebug
data_DATA += api_config kannada box.train.stderr quiet logfile digits get.images
data_DATA += lstmbox wordstrbox
# Configurations for OCR output.
data_DATA += alto hocr page pdf tsv txt
data_DATA += linebox r... | 2301_81045437/tesseract | tessdata/configs/Makefile.am | Makefile | apache-2.0 | 370 |
datadir = @datadir@/tessdata/tessconfigs
data_DATA = batch batch.nochop nobatch matdemo segdemo msdemo
EXTRA_DIST = batch batch.nochop nobatch matdemo segdemo msdemo
| 2301_81045437/tesseract | tessdata/tessconfigs/Makefile.am | Makefile | apache-2.0 | 166 |
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: @tesseract_NAME@
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
URL: https://github.com/tesseract-ocr/tesseract
Vers... | 2301_81045437/tesseract | tesseract.pc.cmake | CMake | apache-2.0 | 501 |
///////////////////////////////////////////////////////////////////////
// File: apiexample_test.cc
// Description: Api Test for Tesseract using text fixtures and parameters.
// Tests for Devanagari, Latin and Arabic scripts are disabled by default.
// Disabled tests can be run when required by using the
// --gt... | 2301_81045437/tesseract | unittest/apiexample_test.cc | C++ | apache-2.0 | 4,513 |
// (C) Copyright 2017, Google Inc.
// 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,... | 2301_81045437/tesseract | unittest/applybox_test.cc | C++ | apache-2.0 | 4,778 |
// (C) Copyright 2017, Google Inc.
// 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,... | 2301_81045437/tesseract | unittest/baseapi_test.cc | C++ | apache-2.0 | 15,476 |