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

Boot item #113

Closed zerosnsa closed 5 months ago

zerosnsa commented 6 months ago

Hello, I would like to ask if I need to modify the startup item when I use Green-on-Green, or do I not need to?

geezacoleman commented 6 months ago

You won't need to change anything on the booting side, just the default setting of lines 521 - 522 of owl.py:

ap.add_argument('--algorithm', type=str, default='gog', choices=['exg', 'nexg', 'exgr', 'maxg', 'exhsv', 'hsv', 'gog'])
ap.add_argument('--model-path', type=str, default='path_to_you_model', help='path to trained weed detection .tflite model or directory')

I realise it's quite a clunky/bad way of doing it currently, but the plan is to migrate to openweedlocator-tools package this year, which will move all these settings into a config.json file you can more easily edit.

geezacoleman commented 5 months ago

Closing this as completed - feel free to reopen of needed.