Comment on page
Extract and translate text from images using optical character recognition (OCR)
This command extracts text from an image and optionally translate the text. The image can either be an attachment or a link.
This is a beta feature and functionality may change over time.
Specify the language you want to detect from the image.
Example: tr?ocr ja [link or attachment]
Translate text by specifying the image's language, then the destination language.
Example: tr?ocr ja en [link or attachment]
The PSM determines how the text is detected from the image. The default is 11 (psm-11).
This is useful if you want to detect vertically aligned text, text that's formatted as one singular block, or want to just play around with the values to help increase accuracy.
The table below are a list of valid PSM values to use in the command.
Example: Add psm-6 to the command
Adjusting the confidence filter may be helpful if the bot isn't extracting all the text that's in the image. By using a lower value, the bot will extract text that it's less "confident" about. Keep in mind that this may also include garbage data as well.
The range is 0-100, and the default is 90. Similar to PSM, add the value with a "conf-" prefix, such as
conf-85to use a confidence level of 85.
Setting a lower value can increase the chance it will grab the entire sentence, but it may also include garbage data as well.