Skip to content

Cannot 'Get-ImageText' on images smaller than 50px #10

Description

@oldChrisITpro

Hi,

Great tools, thanks! However it seems I can't 'Get-ImageText' on images smaller than 50 pixels... I'm not sure if this is a limitation in your code or in Microsoft's Cognitive Service. Would there be a way to make this possible? I'd like to extract text (actually, mostly numbers) from images smaller than 10px.

Thanks! Error below:

Invoke-RestMethod : {"code":"InvalidImageSize","requestId":"2084a8a7-213b-4ddb-9fdd-470d52c0d3cf","message":"Image
must be at least 50 pixels in width and height"}
Au caractère C:\Users\User\Documents\WindowsPowerShell\Modules\PSCognitiveService\0.3.6\classes\ComputerVision.ps1:217
: 24
+         $this.result = Invoke-RestMethod @params
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebEx
   ception
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions