//----------------------------------------------------------------------------
// Copyright (C) 2004-2025 by EMGU Corporation. All rights reserved.
//----------------------------------------------------------------------------
using Emgu.CV.Util;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.IO;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.Util;
using System.Diagnostics;
namespace Emgu.CV.OCR
{
///
/// Tesseract page segmentation mode
///
public enum PageSegMode
{
///
/// PageOrientation and script detection only.
///
OsdOnly,
///
/// Automatic page segmentation with orientation and script detection. (OSD)
///
AutoOsd,
///
/// Automatic page segmentation, but no OSD, or OCR.
///
AutoOnly,
///
/// Fully automatic page segmentation, but no OSD.
///
Auto,
///
/// Assume a single column of text of variable sizes.
///
SingleColumn,
///
/// Assume a single uniform block of vertically aligned text.
///
SingleBlockVertText,
///
/// Assume a single uniform block of text. (Default.)
///
SingleBlock,
///
/// Treat the image as a single text line.
///
SingleLine,
///
/// Treat the image as a single word.
///
SingleWord,
///
/// Treat the image as a single word in a circle.
///
CircleWord,
///
/// Treat the image as a single character.
///
SingleChar,
///
/// Find as much text as possible in no particular order.
///
SparseText,
///
/// Sparse text with orientation and script det.
///
SparseTextOsd,
///
/// Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
///
RawLine,
///
/// Number of enum entries.
///
Count
}
}