Learn R Programming

decryptr (version 0.2.2)

read_captcha: Read captcha files

Description

Given the paths to one or more files, reads and converts them into a captcha list that can be used for classification or decryption. If ans_in_path = TRUE, will take the answer for the captchas from their filenames and get them ready for modeling.

Usage

read_captcha(file, ans_in_path = FALSE, vocab = NULL)

Arguments

file

Paths to one or more captcha images

ans_in_path

Whether or not the answers to the captchas are already in the paths to the files (separated by and underscore in the filename)

vocab

Character vector with all possible values in the captcha. If not specified, answers won't be transformed to the matrix format.

Value

A list of captcha objects