gabrielburnworth / plant-detection

Detects and marks plants in a soil area image using Python OpenCV
68 stars 24 forks source link

kernel is not using morph_amount #2

Closed roryaronson closed 8 years ago

roryaronson commented 8 years ago

I tried changing morph_amount from the default of 5 to some extremes: 1, 10, 100, and 1,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.

gabrielburnworth commented 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))?

roryaronson commented 8 years ago

Ah! Nope, haha. I though it was to be changed at line 17