the-simplifier
  • ๐Ÿ’šWelcome!
  • ๐Ÿ“ฆInstalling
  • Functions
    • The Simplifier Functions
  • ๐ŸŽซValidators
    • ๐ŸŸขisWebsiteUp
    • #๏ธโƒฃ isValidHexColor
  • ๐ŸŽกConverters
    • โฑ๏ธconvertTime
    • ๐Ÿ”ตconvertColors
  • ๐Ÿ“”Formatters
    • ๐Ÿ”ขNumberFormatter
  • ๐Ÿ“ธOCR
    • ๐Ÿ“‘๐Ÿ“ท readImage
  • โŒFakes
    • ๐ŸงชcreateFakeUser
  • ๐Ÿ”…Modified native functions
    • ๐Ÿ“œMap
  • ๐ŸŒNo category
    • ๐Ÿ”ƒgetRandomFromArray
    • ๐Ÿ” generateChars
    • ๐Ÿ”„getRandomInt
Powered by GitBook
On this page

Was this helpful?

  1. OCR

๐Ÿ“‘๐Ÿ“ท readImage

Read images with our OCR system

Reading a image text with our OCR system!

readImage.js
import { readImage } from 'the-simplifier'

let imageURL = 'https://store-images.s-microsoft.com/image/apps.54739.14266069062940839.0386a7c7-7a53-4e48-b184-3c1b8af04617.60917b6c-f77d-4aef-baf4-b8aa891c5889?mode=scale&q=90&h=720&w=1280'

let ocrExample = async() => {
  const result = await readImage(imageURL)

  console.log(result)
}

ocrExample() // Expected: "PURE TEXT"

PreviousOCRNextFakes

Last updated 4 years ago

Was this helpful?

๐Ÿ“ธ