Giter Club home page Giter Club logo

wordament_solver's Introduction

Project logo

Wordament Solver

Status GitHub Issues GitHub Pull Requests License


A simple tool to help you find words in Wordament puzzles using OpenCV.

๐Ÿ“ Table of Contents

๐Ÿง About

Wordament Solver is a Python project that helps you find words in Wordament puzzles. It uses image processing techniques to extract the grid data from a screenshot of the game, and then employs a trie data structure to efficiently search for valid words in the puzzle. The project also displays the highest-scoring words and shows the path of each word on the grid using arrows.

๐Ÿ Getting Started

To get started with Wordament Solver, follow these steps:

  1. Clone the repository:
git clone https://github.com/blackmonk13/wordament_solver.git
  1. Install the required packages:
pip install -r requirements.txt
  1. Run the project using a sample puzzle or a screenshot of the game.

๐ŸŽˆ Usage

CLI Usage

python -m wordament_solver -h

When you have a cropped grid image like the following

Grid Image

python -m wordament_solver --image sample_images/grid/regular_grid.jpg --cropped --view

Example Usage

For more detailed examples and use cases, refer to the example.ipynb notebook. It covers common scenarios and demonstrates how to use the package when imported as a package in other projects.

Usage as a package

โ›๏ธ Built Using

  • Python - Programming Language
  • NumPy - Array Processing Library
  • OpenCV - Image Processing Library
  • Pillow - Image Processing Library
  • PyTesseract - OCR Library
  • NLTK - Natural Language Processing Library
  • SciPy - Statistics Library

โœ๏ธ Authors

See also the list of contributors who participated in this project.

๐Ÿ“ Disclaimer

Wordament Solver is not affiliated with, endorsed, or sponsored by Microsoft Corporation or the creators of Wordament. The project is intended for educational and entertainment purposes only. Any use of this project to gain an unfair advantage in the game or to violate the terms of service of Wordament or Microsoft Corporation is strictly prohibited. The authors and contributors of this project are not responsible for any misuse of the software.

wordament_solver's People

Contributors

blackmonk13 avatar

Watchers

 avatar  avatar

wordament_solver's Issues

Not actual issue: Trying to contact maintainer

Hey sorry for opening an issue ticket, but I can't find a way to contact the wordament_solver maintainer. Tried all listed methods, no dice. Some kind of form submission error on personal site.

Anyway, I'm working on this problem myself and came across this repo and it is by far the most recent and updated python-based solver I've been able to find. I am having a hell of a time with EasyOCR and Pytesseract and getting either of them to deliver consistent results when I go to do the actual OCR after letter extraction. My solution to find and crop the grid from a screenshot uses template matching and works great (as long as screen res doesn't change), but then I hit a wall trying to clean up the cropped portion, binarize it, and get either OCR solution to play nice. I can wash the cropped grid and eventually return accurate results, but it just never works on a different input image. I'm wondering if you managed to get better results using your method of finding the score/number + finding the letter, and cropping each out for OCR separately? At least that is what it looked like, but I am unable to get any contour return when I run your app locally. It seems no matter what my inputs are, it outputs no contours found and to adjust my thresholds. Sorry again for contacting like this. Just curious if you were even still working on this or maybe had a version of image_parser.py that you hadn't pushed or something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.