mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 23:19:07 +08:00
Fix linux build.
This commit is contained in:
parent
a4daf19dd3
commit
65e230f1a2
@ -26,7 +26,7 @@ namespace tesseract {
|
||||
|
||||
// A UNICHARMAP stores unique unichars. Each of them is associated with one
|
||||
// UNICHAR_ID.
|
||||
class UNICHARMAP {
|
||||
class TESS_API UNICHARMAP {
|
||||
public:
|
||||
|
||||
// Create an empty UNICHARMAP
|
||||
|
@ -101,7 +101,7 @@ enum TrainingState {
|
||||
// Base class for network types. Not quite an abstract base class, but almost.
|
||||
// Most of the time no isolated Network exists, except prior to
|
||||
// deserialization.
|
||||
class Network {
|
||||
class TESS_API Network {
|
||||
public:
|
||||
Network();
|
||||
Network(NetworkType type, const std::string& name, int ni, int no);
|
||||
@ -277,7 +277,6 @@ class Network {
|
||||
void DisplayBackward(const NetworkIO& matrix);
|
||||
|
||||
// Creates the window if needed, otherwise clears it.
|
||||
TESS_API
|
||||
static void ClearWindow(bool tess_coords, const char* window_name,
|
||||
int width, int height, ScrollView** window);
|
||||
|
||||
|
@ -96,9 +96,11 @@ class Plumbing : public Network {
|
||||
return stack_;
|
||||
}
|
||||
// Returns a set of strings representing the layer-ids of all layers below.
|
||||
TESS_API
|
||||
void EnumerateLayers(const STRING* prefix,
|
||||
GenericVector<STRING>* layers) const;
|
||||
// Returns a pointer to the network layer corresponding to the given id.
|
||||
TESS_API
|
||||
Network* GetLayer(const char* id) const;
|
||||
// Returns the learning rate for a specific layer of the stack.
|
||||
float LayerLearningRate(const char* id) {
|
||||
@ -113,6 +115,7 @@ class Plumbing : public Network {
|
||||
*lr_ptr *= factor;
|
||||
}
|
||||
// Returns a pointer to the learning rate for the given layer id.
|
||||
TESS_API
|
||||
float* LayerLearningRatePtr(const char* id);
|
||||
|
||||
// Writes to the given file. Returns false in case of error.
|
||||
|
Loading…
Reference in New Issue
Block a user