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

improving method to focus camera #79

Closed geezacoleman closed 1 year ago

geezacoleman commented 1 year ago

The method to focus the camera is a pretty awkward approach. A user needs to:

  1. Run ps -C owl.py and check the PID output
  2. stop that PID
  3. run owl.py --show-display

If these steps were instead included in a single bash script focus_owl.sh it would make the process much more streamlined. Better yet, if the main owl.py script could detect if it was already running prior to booting and do everything itself, it would be much easier again.

geezacoleman commented 1 year ago

Addressed in check-already-running. Works fine on desktop PC, just need to check it works on Raspberry Pi before merging and closing this issue.

geezacoleman commented 1 year ago

Completed as described in #78