tesseract v5.3.3.20231005
|
#include "degradeimage.h"
#include <allheaders.h>
#include <cstdlib>
#include "helpers.h"
#include "rect.h"
Go to the source code of this file.
Namespaces | |
namespace | tesseract |
Enumerations | |
enum | tesseract::FactorNames { tesseract::FN_INCOLOR , tesseract::FN_Y0 , tesseract::FN_Y1 , tesseract::FN_Y2 , tesseract::FN_Y3 , tesseract::FN_X0 , tesseract::FN_X1 , tesseract::FN_SHEAR , tesseract::FN_NUM_FACTORS } |
Functions | |
Image | tesseract::DegradeImage (Image input, int exposure, TRand *randomizer, float *rotation) |
Image | tesseract::PrepareDistortedPix (const Image pix, bool perspective, bool invert, bool white_noise, bool smooth_noise, bool blur, int box_reduction, TRand *randomizer, std::vector< TBOX > *boxes) |
void | tesseract::GeneratePerspectiveDistortion (int width, int height, TRand *randomizer, Image *pix, std::vector< TBOX > *boxes) |
int | tesseract::ProjectiveCoeffs (int width, int height, TRand *randomizer, float **im_coeffs, float **box_coeffs) |
Variables | |
const float | tesseract::kRotationRange = 0.02f |
const int | tesseract::kExposureFactor = 16 |
const int | tesseract::kSaltnPepper = 5 |
const int | tesseract::kMinRampSize = 1000 |