Convert text on image to text
"Something went wrong While Translating Text, please try running the script again `nError Message : " + $Error. $Data = ( Invoke-RestMethod -Headers $Headers -ErrorVariable +E) # Call OCR API and feed the parameters to it. $Headers = ' = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX " You can also send the File as an Attachment. Like in the below screenshot.ĬontentType = 'application/octet-stream ' Or, Convert it to HTML and send as a body in an email. Pipe the results to Set-Content to save it in File.
You can pipe the output to Out-Printer cmdlet and it will get printed. STEP 4 –In previous step we’ve converted the Image text in desired language, now time to Print, Save or Email it. If you want to crop the image, you can use our crop image Or paste the URL of the image. To convert an image to text using the above tool, follow the steps below: Upload the image using the Upload Picture button. You can choose from a Range of Languages in which you want to convert your Image extracted text. Jpg to text tool can extract text from image, official documents, screenshot of web pages, or any image with a few characters. STEP 3 – We have the Text extracted from Image as set of sentences divided into Lines like in our Sample Image, now it’s time to Feed these sentences to Bing Translation API and get them translated to any desired language. STEP 2 – Use Microsoft’s Optical Character Recognition (OCR) API to extract Text from the Image, I’ve created a function for that and you can deep dive into it later. Lets take below screenshot as our sample Image. STEP 1 – Use any Tool (Like SnagIt) to capture an Image of the document, you can also use Print Screen and save the capture as an Image. Translate the Text in desired Language.Įasy! right? ? at least it looks like from the above points.A Scanned document is an Image, Save it as a file.On 10th March, Xerox announced a Latest Technology (Translation Service) that can Scan a document, Translate it in any language and Print from the Scanner or from Xerox App.įor moment I was wondering how they will make it work, but then I got a feeling that it can be Automated with PowerShell and no need to buy a new Hardware for this feature.