Recognize multipage TIFF

Recognize multipage TIFF

Aspose.OCR provides the aspose::ocr::page_tiff() method that can recognize text on the images extracted from TIFF files. The aspose::ocr::page_tiff() method takes the TIFF path as a parameter and RecognitionSettings object. The following code snippet demonstrates the use of the aspose::ocr::page_tiff() method to recognize images from multipage TIFF(TIF) file.

Sample Code

	// For complete examples and data files, please go to https://github.com/aspose-ocr/Aspose.OCR-for-.NET
	// The path to the TIFF file
	const size_t len = 4096;
    wchar_t buffer[len] = { 0 };

    RecognitionSettings set;
    size_t res_len = aspose::ocr::page_tiff("1.tif;2.tif", buffer, len, set);
	#ifdef _WIN32
		setmode(_fileno(stdout), 0x00020000);
	#else
		setlocale(LC_CTYPE, "");
	#endif
		std::wcout << buffer;
		
	res_len = aspose::ocr::page_tiff("1.tif", buffer, len, set);