Skip to content

Commit

Permalink
Tune for ibuprofen and atomoxetine, matte black bg
Browse files Browse the repository at this point in the history
* This tunes the parameters to better detect brown pills.
  Tested with brown ibuprofen tablets and brown/white atomoxetine
  capsules.
  • Loading branch information
keithel-qt committed Aug 13, 2021
1 parent 98fb60f commit 318b874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PillCounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def __init__(self):
self._image_path = "pillCamera"
self._image_count = 0
self._pill_count = -1
self._blur_aperture = 25 # 13 for brown ibuprofen and atomoxetine caplets
self._gray_threshold = 190 # 135
self._kernel_size = 50 # 19
self._blur_aperture = 13 # for brown ibuprofen and atomoxetine caplets
self._gray_threshold = 135
self._kernel_size = 19
self._closing_enabled = True
self._opening_enabled = False

Expand Down

0 comments on commit 318b874

Please sign in to comment.