sdrp / digitize-mtc

an OMR tool that automates data extraction from scanned medical records
0 stars 0 forks source link

Settings Page #23

Open sdrp opened 4 years ago

sdrp commented 4 years ago

Create a page that lets the user change the parameters of the digitization without having to re-start the server. An HTML mockup of this page can be found in backend/templates/settings.html. We'll need turn some of the underlying hardcoded variables into parameters to the functions that use them in order to implement this.

The settings we had in mind are:

  1. number of seconds between captured frames
  2. number of good frames to capture
  3. alignment scores threshold (~40, where lower scores are more strict)
  4. blurriness (two thresholds, min and max)
  5. confidence (i.e. how much more filled in the chosen box is compared to the next most filled in box, currently around 10%)
  6. exposure (this is a static threshold for determining whether to make a pixel black or white before doing pixel counting...we could also consider removing this parameter and just determining the checked box by overall score summed up score (!) (!) (!) < this could help a lot)...alternatively we could make this threshold dynamic based on the # of total black pixels in the reference image