geezacoleman / OpenWeedLocator

An open-source, low-cost, image-based weed detection device for in-crop and fallow scenarios.
MIT License
320 stars 56 forks source link

add invert_hue for selecting red-purple regions #93

Closed geezacoleman closed 1 year ago

geezacoleman commented 1 year ago

Using cv2.bitwise_not(hueThresh), this change allows the user to select the opposite of the thresholded hue region. It is useful for finding red/purple regions.

Use the feature by changing invert_hue=False to True. Defaults to False to avoid any unintended changes.