geezacoleman / OpenWeedLocator

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

add support for running on image, dirs #94

Closed geezacoleman closed 1 year ago

geezacoleman commented 1 year ago

Instead of simply running on videos for testing, OWL now supports directories of images, images alone and videos. Simply use the --input flag on the command line with the correct path to the media files.

FrameReader class uses iter() to handle images/directories/videos. An image_loop_time variable is used to specify how long each image should remain when provided a directory of images. Default is set to 5 seconds.