A Python implementation of the Stroke Width Transform
Virtualenv is recommended for managing python packages.
Install the packages used in this project with:
pip install -r requirements.txtTo test with example code, run test_pyswt.py located at the repo root.
To use in your own project:
import pyswt
img = cv2.imread(img_path)
bboxes = pyswt.run(img) # Outputs bounding boxes of found text