Giter Club home page Giter Club logo

psocr's People

Contributors

tobiaspsp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kayodebristol

psocr's Issues

Clipboard support

Was wondering if you could add support for OCRing the image data on the Clipboard so it doesn't have to be saved to a file first.

OCR number image

Hi @TobiasPSP

Does it be able to OCR digital image?
I tried, and it seems not able to see it, any option can be used to enable that?

Thanks
Eric Xin

Windows 11 - Exception calling GetResult

Dr Weltner,

Not sure if you're still maintaining this. It works great on my Windows 10 machine, but on my Windows 11 machine I get a range of failures (pasted below). Both computers have PsOcr 1.1.0 there are no errors when installing the module, no complaints about missing assemblies.

PS C:\Users\robert> Convert-PsoImageToText .\Documents\code\ocr.png
Exception calling "GetResult" with "0" argument(s): "Value does not fall within the expected range."
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:28 char:12
+     return $awaiter.
+            ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException
 
You cannot call a method on a null-valued expression.
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:112 char:5
+     $content = $storageFile.OpenAsync([Windows.Storage.FileAccessMode ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Exception calling "Invoke" with "2" argument(s): "Value cannot be null.
Parameter name: source"
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:28 char:12
+     return $awaiter.
+            ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
 
Exception calling "CreateAsync" with "1" argument(s): "Invalid pointer
Windows.Graphics.Imaging: One or more pointer arguments are null."
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:116 char:5
+     $decoder = [Windows.Graphics.Imaging.BitmapDecoder]::CreateAsync( ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : NullReferenceException
 
Exception calling "Invoke" with "2" argument(s): "Value cannot be null.
Parameter name: source"
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:28 char:12
+     return $awaiter.
+            ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
 
You cannot call a method on a null-valued expression.
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:120 char:5
+     $bitmap = $bitmapDecoder.GetSoftwareBitmapAsync()
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Exception calling "Invoke" with "2" argument(s): "Value cannot be null.
Parameter name: source"
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:28 char:12
+     return $awaiter.
+            ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
 
Exception calling "RecognizeAsync" with "1" argument(s): "Object reference not set to an instance of an object."
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:124 char:5
+     $ocrResult = $ocrEngine.RecognizeAsync($softwareBitmap)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : NullReferenceException
 
Exception calling "Invoke" with "2" argument(s): "Value cannot be null.
Parameter name: source"
At C:\Users\robert\Documents\WindowsPowerShell\Modules\PsOcr\1.1.0\root.psm1:28 char:12
+     return $awaiter.
+            ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
 

PS C:\Users\robert> 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.