Skip to content

OCR no longer works in version 8.1.1 #580

@TheBastelWastl

Description

@TheBastelWastl

OCR no longer works for me in the portable version of NAPS2 8.1.1. In the portable version 7.5.3.0 this still worked. I am using Windows 10 64bit.

Here is the error message from the errorlog.txt:

2025-03-22 13:19:47.2922 3472 Error running OCR System.IO.FileNotFoundException: Could not find file 'D:\NAPS\Data\temp\2l3qnth3.4gd.hocr'.
File name: 'D:\NAPS\Data\temp\2l3qnth3.4gd.hocr'
at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode)
at new System.IO.Strategies.OSFileStreamStrategy(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode)
at FileStreamStrategy System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode)
at new System.IO.FileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)
at Stream System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy)
at void System.Xml.XmlTextReaderImpl.FinishInitUriString()
at XmlReader System.Xml.XmlReaderSettings.CreateReader(string inputUri, XmlParserContext inputContext)
at XDocument System.Xml.Linq.XDocument.Load(string uri, LoadOptions options)
at async Task NAPS2.Ocr.TesseractOcrEngine.ProcessImage(ScanningContext scanningContext, string imagePath, OcrParams ocrParams, CancellationToken cancelToken)

If I watch the D:\NAPS\Data\temp\ folder I see that it creates a .jpg-file after a scan but no .hocr-file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions