seanfhear / IoTea

IoT system for growing a tea plant.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect if plant needs to be turned

NiallEHunt opened this issue · comments

Background

We want to be able to detect if the plant needs to be turned. The idea being if the plant is leaning towards the window we may want to rotate the plant to ensure it grows straight to avoid it toppling over in the future. The plan is to take a picture of the plant every day, or couple of days (#12), calculate statistics such as height (#25) and to detect if the plant needs to be turned. The motor will be used to turn the plant if needed.

Tasks

  • Check if plant is leaning from segmented objects from #12.
  • Determine a valid threshold for plant leaning
  • Send message to actuate on result

Recommended approach

We could try to fit a line of best fit to the detected objects and determine if the curve of that line is too severe or too much to one side. We could also try to detect the amount of leaves (green) to the left and right of the center of the pot and determine if there are too many leaves on one side. Either way the camera should ideally be parallel to the window to determine if the plant is leaning towards it. The image below describes what I mean.

image