Closed roryaronson closed 8 years ago
When you are changing the morph amount, are you changing the value of the keyword argument when calling the function (i.e. detect_plants(image, morph=15)
)?
Ah! Nope, haha. I though it was to be changed at line 17
I tried changing
morph_amount
from the default of5
to some extremes:1
,10
,100
, and1,000
. There were no apparent changes in the output images.Then I changed this line:
kernel = np.ones((morph_amount, morph_amount), np.uint8)
To:
kernel = np.ones((1000, 1000), np.uint8)
and that took effect.