#
Image to Text
Solve image-based text captchas via OCR.
#
Basic usage
import { ImageToTextTask } from "node-capmonster"
import path from "path"
const client = new ImageToTextTask("<api_key>")
const body = await client.prepareImageFromLocal(
path.resolve("./captcha.png")
)
const task = client.task({ body })
const taskId = await client.createWithTask(task)
const result = await client.joinTaskResult(taskId)
console.log(result.text)
#
Available modules
amazon, apple, botdetect, facebook, gmx, google, hotmail, mailru, okeng, okrus, partiallyblur, ramblerrus, ramblerrusnew, solvemedia, steam, vk, whatsapp, wikimedia_paddle_ensemble, yandex, yandexnew, yandexwave, captcha_math, sat, universal