Skip to main content

Geometry Problem Solver

Project description

Geometry Problem Solver (geosol) automatically solves a geometry problem consisting of question text and a diagram.

Geosol is consisted of largely 3 processes: 1. Textual understanding 2. Diagram understanding 3. Geometric inference

Please see below for detailed explanations. Typical usage often looks like this:

import geosol.txt as gtxt # modules for (1) import geosol.dgm as gdgm # modules for (2) import geosol.inf as ginf # modules for (3)

img = gdgm.open(“diagram.png”) qt = gtxt.open(“question.txt”) txt_rep = gtxt.rep(qt) # abstract representation of question text dgm_rep = gdgm.rep(img, txt_rep) # rep of diagram inf_mod = ginf.inf(dgm_rep, txt_rep) # inference module print(inf_mod.get_answer())

Dependencies

Standard Python packages to be installed (via pip) are: numpy, scipy, pillow, scikit-learn, tinyocr

Please note that tinyocr is an OCR package built by the same author. OCR being a distinct function itself, it has been separately packaged.

In addition, OpenCV and Python wrapper needs to be installed. Please visit the opencv web page. The author has version 2.4.

Textual Understanding

Diagram Understanding

Geometric Inference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geosol-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file geosol-0.1.0.tar.gz.

File metadata

  • Download URL: geosol-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geosol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92c1ecace5f41e9000e6e2607a8a36d5334c27ed7234dfb25686ca10aeab3ce2
MD5 e7223dccfc95178ce70947914e685b52
BLAKE2b-256 3dfb6e85db6cb3e6e2f37d739030e9063f905f13de1accc3a9d1150e8d72d10b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page