When I upload same file (PNG file) in yr online conversion link then extract text properly but with same file, i have tried with below code then extract only 1 sentence.
using (MemoryStream ms = new MemoryStream())
{
using (Stream)
{
Stream.Seek(0, SeekOrigin.Begin);
Stream.CopyTo(ms);
Aspose.OCR.Models.PreprocessingFilters.PreprocessingFilter preprocessingFilter = new Aspose.OCR.Models.PreprocessingFilters.PreprocessingFilter();
preprocessingFilter.Add(Aspose.OCR.Models.PreprocessingFilters.PreprocessingFilter.AutoSkew());
OcrInput images = new OcrInput(InputType.SingleImage, preprocessingFilter);
images.Add(ms);
var recognitionResult = _document.Recognize(images);
if (recognitionResult.Count > 0)
{
result = recognitionResult[0].GetSpellCheckCorrectedText();
}
}
}
Is there any missing in code?
Please do needful.