Currently a WIP.
Goal is to detect bubbles, cast answers and export a JSON blob or CSV
Based on pyimagesearch and other things around the web
- clone down repo
- cd on over
- run
python -m SimpleHTTPServer 8000
- make edits to
/processImage.js
, refresh
So far I’ve gotten:
- upload image file
- covert image to grey scale
- slight blur
- cut out piece of paper, transform to ideal rect
- detect circles
- reduce overlapping circles
- cluster circles into question groups
- cast each circle in group to darkness score
- determine most bubbled based on ^^
- paint chosen answer to canvas
- determine the question number (currently assumed)
- ensure bubble sizing standardized
- remove outliers in clustering
- handle more complex sheets
- … all the other things 😆