wordfeud-ocr 0.1.1

A Rust library that recognizes a screenshot from the Wordfeud game on Android phone.
Documentation

An OCR library that reads the state of a Wordfeud board from a screenshot

This library recognizes the tiles on a Wordfeud board and rack, and also the bonus squares on the board.

Basic usage

# use wordfeud_ocr::{Board, Error};
# use anyhow::Result;
let path = "screenshots/screenshot_english.png";
let gray = image::open(path)?.into_luma8();
let board = Board::new();
let result = board.recognize_screenshot(&gray)?;
println!("Tiles:\n{}", result.tiles_ocr);
# Ok::<(), Error>(())