Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Tesseract OCR with Powershell issue

$
0
0

Hello all. I am ripping my hair out with this one. I followed this guide on the following link

https://blog.jourdant.me/post/powershell-and-tesseract-going-paperless-with-ocr

on my work computer I get this error message

$tesseract = New-Object Tesseract.TesseractEngine((Get-Item ".\Lib\tessdata").Fullname, "eng", [Tesseract.EngineMode]::Default, $null)

The error is exception calling .ctor with 4 arguments invalid operation new-object

I'm left thinking one of 2 things. Either the version of powershell I'm running on my work computer does not accept one of those commands because it's older (and unfortunately I cannot upgrade) or there is some security blocking it...here is my powershell version info.

powershell version is 2.0 framework or CLRVersion is 2.0...Now I've tried explicitly stating the full path in the issue code and I've also...


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>