Skip to content

danielpowell4/bubbleSheetToCsv

Repository files navigation

bubbleSheetToCsv

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

Get Started

  • clone down repo
  • cd on over
  • run python -m SimpleHTTPServer 8000
  • make edits to /processImage.js, refresh

Working TODO list:

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 😆